]> arthur.barton.de Git - bup.git/commit
gc: always clean up the packwriter; abort on errors
authorRob Browning <rlb@defaultvalue.org>
Sat, 12 Sep 2020 22:15:46 +0000 (17:15 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 22 Nov 2020 19:26:26 +0000 (13:26 -0600)
commit2b2f2ea3c3e1f96510e3884464658463a527903b
treebbb5dc46dd7e8358a9d84ddd2e889d6ac3f77b0b
parentea3cadffc728f5a8262243f6f9cafdc331b12b2b
gc: always clean up the packwriter; abort on errors

Make sure to always close or abort the packwriter.  Abort on errors
under the assumption that any packfile in progress should only contain
blobs duplicated from the packfiles that were being garbage collected
to produce it, and those packfiles should never be removed until we've
finished writing and closing the one they're being swept into.

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