[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial-devel
Subject:    [issue716] fix race condition during clone
From:       Benoit Boissinot <mercurial-bugs () selenic ! com>
Date:       2007-08-30 22:20:22
Message-ID: 1188512422.52.0.376331592214.issue716 () selenic ! com
[Download RAW message or body]


New submission from Benoit Boissinot <bboissin@gmail.com>:

if two clone with the same destination directory are launched at the same time,
they might it a race condition where one will delete the other.

possible fix: if the creation of the .hg directory fails because of EEXIST,
don't run dircleanup (needs fixing in hg.py and localrepo.py), if the creation
of the dest directory fails it should "pass". Moreover the locking order might
be improved (lock before writing anything to the repo).

----------
messages: 3942
nosy: brendan, tonfa
priority: bug
status: unread
title: fix race condition during clone

____________________________________________________
Mercurial issue tracker <mercurial-bugs@selenic.com>
<http://www.selenic.com/mercurial/bts/issue716>
____________________________________________________

_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@selenic.com
http://selenic.com/mailman/listinfo/mercurial-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic