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

Re: Locking design (was Re: svn commit: r9885 - trunk/notes)

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-05-26 21:03:47 CEST

On Wed, 2004-05-26 at 13:59, Travis P wrote:

>
> Are you imagining a file move to have some sort of atomic guarantee?

Absolutely. Our working copy library depends on this technique all the
time.

>
> Even if /tmp and the repos are both on local storage, if they are on
> separate volumes (a common case)

If the lock-table is just a file, we create 'locktable.UUID.tmp' and
then move it to 'locktable'. It's a rename within the same directory.

You're misunderstanding my phrase "tmpfile". I didn't mean "something
in /tmp". :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 26 21:07:38 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.