]> arthur.barton.de Git - bup.git/commit
Don't try to rename tmpfiles into existing open files.
authorLukasz Kosewski <lkosewsk@gmail.com>
Sun, 10 Jan 2010 09:04:17 +0000 (04:04 -0500)
committerLukasz Kosewski <lkosewsk@gmail.com>
Sun, 10 Jan 2010 09:04:17 +0000 (04:04 -0500)
commitba74eb4d2619f12a3eb786324fb035a674594a63
treebfec2aef576c8325d9927d37f0a9c29c96ec167c
parent8498835f8883d4b6581f4bcaf982f5322e9bdbde
Don't try to rename tmpfiles into existing open files.

Linux and friends have no problem with this, but Windows doesn't allow
this without some effort, which we can avoid by... not needing to write
to an already-open file.

Give index.Reader a 'close' method which identifies and closes any open
mmaped files, and make cmd-index.py use this before trying to close a
index.Writer instance (which renames a tmpfile into the same file the
Reader has mmaped).
cmd-index.py
index.py