I was helping Jono look into this on IRC.  It seems that
AQ_DOWNLOAD_FINISHED state within the syncdaemon is used both to emit
the DownloadFinished D-Bus signal to the outside world and trigger the
rename from the .u1partial file to the real file name (through
commit_file).

For the DownloadFinished D-Bus signal to be useful, it really should
happen after the rename has completed, otherwise it is subject to the
race condition Jono encountered.

** Also affects: ubuntuone-client
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1031197

Title:
  DownloadFinished signal triggers when file has not yet completed
  writing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-client/+bug/1031197/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to