]> arthur.barton.de Git - bup.git/commit
PackIdxList.refresh(): remember to exclude old midx files. bup-0.12b
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 14 Mar 2010 06:59:45 +0000 (01:59 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 14 Mar 2010 09:05:34 +0000 (05:05 -0400)
commit63637f7fff1879fd5f7d326065000c4a9ac12b1a
treeef641f709a1e98e8fe70cdf93c4e5b7c5ef7e8ba
parentea696d56c03c943bb70b3a35cdfd6be07ecd4618
PackIdxList.refresh(): remember to exclude old midx files.

Previously, if you called refresh(), it would fail to consider
the contents of already-loaded .midx files as already-loaded.  That means
it would load all the constituent .idx files, so you'd actually lose all the
advantages of the .midx after the first refresh().

Thus, the midx optimization mainly worked before you filled up your first
pack (about 1GB of data saved) or until you got an index suggestion.  This
explains why backups would slow down significantly after running for a
while.

Also, get rid of the stupid forget_packs option; just automatically prune
the packs that aren't relevant after the refresh.  This avoids the
possibility of weird behaviour if you set forget_packs incorrectly (which we
did).
cmd/server-cmd.py
lib/bup/git.py
t/tclient.py