You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anthony Muller <An...@hyperoffice.fr> on 2005/05/11 08:19:04 UTC

Atomic lock operation ?

Hello,

I'd like to know if a lock command is atomic ?

For instance, there are 3 files : aaa.txt, bbb.txt, ccc.txt. I want to
lock 3 files, but if at least one of them is already locked (or if the
operation is break due to network problem) I wish that the command lock
no file rather than locked only somes files...

Thanks for reply !

Anthony


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Atomic lock operation ?

Posted by Ben Collins-Sussman <su...@collab.net>.
On May 11, 2005, at 3:19 AM, Anthony Muller wrote:

> Hello,
>
> I'd like to know if a lock command is atomic ?
>

No.

> For instance, there are 3 files : aaa.txt, bbb.txt, ccc.txt. I want to
> lock 3 files, but if at least one of them is already locked (or if the
> operation is break due to network problem) I wish that the command  
> lock
> no file rather than locked only somes files...
>

Locking a group of files is not an atomic operation;  it's possible  
for some of the locks to succeed, others to fail.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Atomic lock operation ?

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Wed, 11 May 2005, Anthony Muller wrote:

> I'd like to know if a lock command is atomic ?
>
> For instance, there are 3 files : aaa.txt, bbb.txt, ccc.txt. I want to
> lock 3 files, but if at least one of them is already locked (or if the
> operation is break due to network problem) I wish that the command lock
> no file rather than locked only somes files...
>
No, locking a group of files is not atomic.

Best,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org