And add a test so this doesn't happen again.
total += len(ix)
log('Merging %d indexes (%d objects).\n' % (len(infilenames), total))
- if total < 1024 and len(infilenames) < 3:
+ if (not opt.force and (total < 1024 and len(infilenames) < 3)) \
+ or (opt.force and not total):
log('%s: not enough objects for a .midx to be useful.\n' % outdir)
return
yield buffer(self.shalist, i*20, 20)
def __len__(self):
- return self._fanget(self.entries-1)
+ return int(self._fanget(self.entries-1))
_mpi_count = 0
WVSTART "split"
WVPASS bup split --bench -b <t/testfile1 >tags1.tmp
WVPASS bup split -vvvv -b t/testfile2 >tags2.tmp
-WVPASS bup midx -a
+WVPASS bup margin
+WVPASS bup midx -f
+WVPASS bup margin
WVPASS bup split -t t/testfile2 >tags2t.tmp
WVPASS bup split -t t/testfile2 --fanout 3 >tags2tf.tmp
WVPASS bup split -r "$BUP_DIR" -c t/testfile2 >tags2c.tmp