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

Re: Using subversion on a LAN

From: mark benedetto king <mbk_at_lowlatency.com>
Date: 2003-11-04 22:17:50 CET

On Thu, Oct 30, 2003 at 12:42:12PM -0800, Greg Stein wrote:
> On Fri, Oct 24, 2003 at 08:15:51AM -0500, Kopp David K wrote:
> >...
> > 2) svn notices that the URL protocol is lan, (or nfs or whatever
> > bogus protocol you like). It determines that K:\logpars\subversion\powerLOGJ
> > is the directory holding the Subversion repository, so it checks to see if a
> > file (let's call it lan.lock) exists in that directory. If it does, it
>
> David,
>
> I just realized something, which hasn't been noted before. Subversion
> *already* has a lock around the access to the repository. Nominally, we
> use it to lock out users while a recovery is being performed (altho that
> isn't working as designed right now). But you should be able to leverage
> that lock for your own needs.
>
> Look in libsvn_repos/repos.c::get_repos() and how it interacts with the
> lockfile.
>

Isn't this somewhat circular? We don't trust BDB over SMB because we
don't trust LockFile(), right?

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 4 22:18:28 2003

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.