RFC: dirstate & locks

Robert Collins robertc at robertcollins.net
Wed Aug 6 06:47:49 BST 2008


So I have a proposal for loosening dirstates need for locks...

turn dirstate in a pointer + contents file in a subdir. The extra IO to
read the pointer and read the state file from a subdir will be lost in
system noise.

status updates that want to fill out sha1sums would:
write a new state file
exclusively os lock the pointer file
check the pointer is unchanged from when status started
update the pointer
unlock

mutating operations that take a normal wt lock out would:
write a new state file
exclusively lock the pointer file
update the pointer
unlock

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080806/6dacf782/attachment.pgp 


More information about the bazaar mailing list