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

Re: FSFS propaganda

From: Josh Pieper <jpieper_at_andrew.cmu.edu>
Date: 2004-04-30 19:08:34 CEST

Garrett Rooney wrote:
> What if a process dies while rewriting the 'current' file? It seems
> like we might want to make 'svnadmin recover' able to reconstruct that file.
>
> In a somewhat related issue, the last time I looked, the reading of
> various files in the fsfs filesystem (current, revprops, etc) isn't
> locked, despite the fact that those files can be changed. Should we be
> using apr_file_lock to obtain read locks on them while they're being
> read, to avoid the possibility of reading while they're being rewritten?

I think the proper solution here is to only write the 'current' and
revprop files by using filesystem renames, which are atomic. Then it
would be impossible to read a current file that is in an inconsistent
state. Does that sound good ghudson?

-Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 30 19:08:49 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.