im.pidgin.pidgin: fdee6fd343192e04665c9e56ceca3ac78f169666

Kevin Stange kstange at pidgin.im
Fri Nov 16 11:47:44 EST 2007


Ethan Blanton wrote:
> Kevin Stange spake unto us the following wisdom:
>> kstange at pidgin.im wrote:
>>> _______________________________________________
>>> Commits mailing list
>>> Commits at pidgin.im
>>> http://pidgin.im/cgi-bin/mailman/listinfo/commits
>> I believe I've correctly implemented a workaround for this.  The problem
>> is that the pull was hanging, in this case for over an hour.  I used the
>> DB journal as a lock file and modified the script to kill the pull after
>> a 270 second timeout, just shy of five minutes.
> 
> I am not at *all* sure that using the journal as a lockfile is safe.
> (It may be, I am not saying it certainly is not.)  270 seconds is a
> reasonably conservative pull timeout.
> 

From my investigation, monotone does the whole pull as a SQL transaction
and finishes with a commit, so the transaction seems to be entirely
contained within the journal until the commit is issued -- no mtime
change for the main DB file until after that.

I'm not sure if there are any cases where this doesn't happen, but it
seems to be how it works by my testing.

Kevin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20071116/936566d8/attachment.sig>


More information about the Devel mailing list