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