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

Re: svn commit: r12175 - branches/locking/subversion/libsvn_fs_fs

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2004-12-07 00:43:29 CET

kfogel@collab.net wrote:

> That doesn't work as easily as one would hope, because we need to look
> up path prefixes too. (Peter Lundblad pointed this out to me when I
> had the same thought.)
>
> Of course, we could hash every single path prefix leading up to a
> given path, and store one file for each. That might work, but it's a
> lot of files, whether or not they're all in the same directory. If C
> is the average number of components in a repository path, then we'd
> need C*N physical files to lock N repository paths. Yuck.

Yeah, that does kind of suck...

I suppose we could handle collisions by storing multiple lock tokens in
each file, and that would allow us to use a single file to represent all
the locks under a given prefix.

Of course then removing a lock kind of sucks because we have to copy the
file, removing a single lock from it, and copy it back over the
original. Ick.

Yeah, I'm not sure what the best way to go is.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 7 00:44:20 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.