[Kde-pim] [Bug 98792] Korganizer, Kontact, Korgac: "Could not rename partial file /var/tmp/..."

Will Stephenson wstephenson at kde.org
Thu Jan 25 16:07:40 GMT 2007


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=98792         




------- Additional Comments From wstephenson kde org  2007-01-25 17:07 -------
Created an attachment (id=19415)
 --> (http://bugs.kde.org/attachment.cgi?id=19415&action=view)
Suggested patch

This patch uses the resource's own KABC::Lock to lock the cache file, which
inhibits the file_copy operation that causes the error.  The resource detects
its cache is locked after having loaded the cache, but before refreshing the
cache.	

The result of adding this lock is that if two processes are simultaneously
reloading the resource, the winner will first load the cached version (call it
C-1) and then load C0 after fetching it.  The loser will load C-1, encounter
the lock and stop.  On the next iteration, Winner gets C1 and Loser gets C0.

So the result of the lockstep is that loser is at most out of date by one
version of the resource.   A better synchronisation would be if we had
distributed locks so that Loser is notified when Winner releases its lock and
then loads the fresh cache file.
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/



More information about the kde-pim mailing list