]> arthur.barton.de Git - bup.git/commit - cmd/midx-cmd.py
Add helpers.fdatasync(); fix interleaved mmap/read-write in midx.
authorRob Browning <rlb@defaultvalue.org>
Tue, 3 Dec 2013 18:39:37 +0000 (12:39 -0600)
committerRob Browning <rlb@defaultvalue.org>
Thu, 5 Dec 2013 20:35:40 +0000 (14:35 -0600)
commit360205500c02eefc98432677cfebcb1e4a832a0c
tree59975427a1912c6f3e1f250fa84043584f4563b3
parentee45a10a0cb1abf31bc2d3b567b0bade23adb8a5
Add helpers.fdatasync(); fix interleaved mmap/read-write in midx.

Have helpers.fdatasync() fall back to os.fsync() whenever
os.fdatasync() isn't available.

Thanks to Yann Autissier <yann.autissier@gmail.com> for reporting the
problem that prompted this work.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/midx-cmd.py
lib/bup/helpers.py