]> arthur.barton.de Git - bup.git/commit
Sync pack data more carefully when writing
authorRob Browning <rlb@defaultvalue.org>
Sun, 3 Jan 2016 18:08:56 +0000 (12:08 -0600)
committerRob Browning <rlb@defaultvalue.org>
Mon, 18 Jan 2016 17:30:17 +0000 (11:30 -0600)
commitc512421eafe29b76177e4b0072c68211ab7dc88b
treea924d5a73c6517f2649432c8dde5640efb5e8854
parentd9fda6104edab546e25b1817f282dd18fc062998
Sync pack data more carefully when writing

Otherwise a system failure might leave a broken repo.  Note that these
changes may not be comprehensive, but they're a start, and hopefully
deal with some of the most critical data.

In addition to syncing the pack data itself, sync the parent directory
after the final rename so that we don't risk losing the reference to
the new file.

See also:

  http://austingroupbugs.net/view.php?id=672
  https://www.sqlite.org/atomiccommit.html

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py