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

Re: Question on lock behaviour

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-04-11 01:22:35 CEST

On Apr 10, 2005, at 12:18 PM, Julian Foad wrote:
> That answer applies to each file individually, so the answer to
> locking a group of files is that you may end up with some of the files
> locked by one user and some by another. That is, it is not atomic.
> (Is this true for all RA methods etc. or only some of them? It's a
> shame if we can't eventually make lock-group-of-files be an atomic
> operation.)

It's true of all RA methods, because it's not related to RA at all.
The svn_fs_lock() and _unlock() APIs only operate on one file at a

At the moment, however, svn_ra_(un)lock() takes a list of files,
because in 1.3 we plan to marshall all of the paths over the network at
once. Once they arrive in libsvn_repos, svn_repos_fs_lock() will
receive the list and pass the whole list to the pre- and post- (un)lock
hooks. But at the libsvn_fs level, the operations still happen

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 11 01:24:04 2005

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