]> arthur.barton.de Git - bup.git/commit
cmd-midx: correctly handle a tiny nonzero number of objects.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 2 Feb 2010 02:30:59 +0000 (21:30 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 2 Feb 2010 02:30:59 +0000 (21:30 -0500)
commit11f86ebed112fa8305271388c71248a51740b644
treed37f615ec078b8c45ff7dd659a045df2db71f357
parent04e1c07492984b3e722c3c5d983cf23ecd1887c5
cmd-midx: correctly handle a tiny nonzero number of objects.

If all the sha1sums would have fit in a single page, the number of bits in
the table would be negative, with odd results.  Now we just refuse to create
the midx if there are too few objects *and* too few files, since it would be
useless anyway.

We're still willing to create a very small midx if it allows us to merge
several indexes into one, however small, since that will still speed up
searching.
cmd-midx.py