]> git.michaelhowe.org Git - packages/b/bup.git/commit
bup-server: revert to non-midx indexes when suggesting a pack.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 5 Feb 2010 00:26:17 +0000 (19:26 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 5 Feb 2010 00:28:11 +0000 (19:28 -0500)
commite8205ab3591fcb60f4922d1d72934c75cb3865d2
tree5cfad303891809476e091ddc6a9e3d5b1cf4eeaf
parented137493107e159e745e0392ceac0b22ed4186f2
bup-server: revert to non-midx indexes when suggesting a pack.

Currently midx files can't tell you *which* index contains a particular
hash, just that *one* of them does.  So bup-server was barfing when it
expected MultiPackIndex.exists() to return a pack name, and was getting a
.midx file instead.

We could have loosened the assertion and allowed the server to suggest a
.midx file... but those can be huge, and it defeats the purpose of only
suggesting the minimal set of packs so that lightweight clients aren't
overwhelmed.
cmd-server.py
git.py