Commit 1e8f93fb authored by Tim Peters's avatar Tim Peters

Pack at the end even if the # of msgs isn't an exact multiple of

PACK_INTERVAL.
parent eb8de680
......@@ -84,7 +84,7 @@ def index(rt, mboxfile, db):
rt["documents"] = docs = IOBTree()
get_transaction().commit()
mbox = mailbox.UnixMailbox(open(mboxfile))
mbox = mailbox.UnixMailbox(open(mboxfile, 'rb'))
if VERBOSE:
print "opened", mboxfile
if not NUM:
......@@ -121,7 +121,7 @@ def index(rt, mboxfile, db):
get_transaction().commit()
if PACK_INTERVAL and i % PACK_INTERVAL != 0:
if PACK_INTERVAL:
if VERBOSE >= 2:
print "packing one last time..."
p0 = time.clock()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment