lock free dirstate - prototype

Robert Collins robertc at robertcollins.net
Wed Sep 30 08:15:45 BST 2009


On Wed, 2009-09-30 at 08:33 +0300, Alexander Belchenko wrote:
> Robert Collins пишет:
> > On Tue, 2009-09-29 at 14:25 +0100, Martin Pool wrote:
> > Unlinking of files - on win32 a reader prevents unlinking of a file that
> > its reading. That means we have to unlink at some arbitrary later time
> > than the point where the file stopped being logically interesting.
> 
> It's not quite true. Using Win32 API you can have file opened to read but in the same time allowed
> to delete by another process. Mercurial has implementation of this, btw.

You mean via FILE_SHARE_DELETE ?... been a while. Ah yes, I see. That
would cause the last person closing to have the OS remove the file, and
prevent others from opening or replacing it.

So, this is something we would benefit from. How much code is needed to
get this going?

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090930/b691fc48/attachment.pgp 


More information about the bazaar mailing list