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

Re: FSFS locks questions and a concern

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 12 Nov 2010 09:40:49 -0500

On 11/11/2010 04:25 PM, Daniel Shahaf wrote:
> Philip observed today that, since 'hotcopy' copies the $REPOS/db/locks/???/*
> files using a simple svn_io_copy_dir_recursively(), the correctness of
> the copy is not guaranteed if locks are being added/removed while the
> hotcopy is ongoing: the hotcopy might contain only an arbitrary subset
> of the path-prefix-digest-files. (It might contain any subset of the
> three digest files md5("/"), md5("/trunk/iota"), md5("/trunk"). The
> lock removal removes/updates those files in depth-first order.)
>
> So, a few questions:

Maybe, just maybe, you can find some of the information you seek in the
history of http://subversion.tigris.org/issues/show_bug.cgi?id=3660. I had
to study the FSFS lock storage and usage algorithms some time ago to fix a
bug. (Though, don't expect to find hotcopy strategies there.)

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2010-11-12 15:41:38 CET

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