RFC: dirstate & locks

Robert Collins robertc at robertcollins.net
Wed Aug 6 07:18:59 BST 2008


On Wed, 2008-08-06 at 16:03 +1000, Martin Pool wrote:


> So without tracing all the way through this: getting rid of the need
> for an OS lock would be pretty high on my list; it is arguably the
> root cause of half a dozen bugs.   (Arguable because there may be
> other ways to fix them.)  In this scheme it seems like a regular
> lockdir would be enough.

We still need an OSlock I think in this scheme, that or prohibit 'st
updates sha1 cached values'.

Other schemes - like a journal of updates - can provide safe
multi-writers-without-a-dirlock-being-acquired-and-safe-bisection-in-readers.

But they are more complex and I'm looking at cheap fixes in the first
instance.

-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/7c8ef139/attachment.pgp 


More information about the bazaar mailing list