[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Atomic lock operation ?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-11 13:22:31 CEST

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
Received on Wed May 11 13:28:39 2005

This is an archived mail posted to the Subversion Users mailing list.