On Sun, Jan 19, 2003 at 10:47:24AM -0800, Pascal wrote:
> Update of /cvsroot/freenet/freenet/src/freenet/fs/dir
> In directory sc8-pr-cvs1:/tmp/cvs-serv21158
> 
> Modified Files:
>       NativeFSDirectory.java 
> Log Message:
> Old indexes now get renamed instead of overwritten.  If the new index is not 
> written out completely before Fred dies, the old index will be used on 
> startup.

Hmmm. Need to be really careful with this. The reason I didn't do this
in the first place was that files might have been committed between the
time of the last successful commit and the time of the unsuccessful
commit... IF the code that writes out makes VERY sure that it doesn't
commit anything if the new index f*cked up, this is OK.

-- 
Matthew Toseland
toad at amphibian.dyndns.org/amphibian at users.sourceforge.net
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at 
http://amphibian.dyndns.org:8889/bKX3IbYHOO0/
ICTHUS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20030119/984e686e/attachment.pgp>

Reply via email to