]> arthur.barton.de Git - bup.git/commit
Keep PackMidx pointers until finished with mmap
authorRob Browning <rlb@defaultvalue.org>
Thu, 22 May 2014 19:12:54 +0000 (14:12 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 28 May 2014 16:54:04 +0000 (11:54 -0500)
commitd48d08186c459c3eb057dc1ef2cc0f4d2cc2ccf7
treebf3fb6395a0672f78e4075aeff7057650a8dc669
parent0430ecff35e1d9dfee3dc74574f41be20299bca9
Keep PackMidx pointers until finished with mmap

Now that PackMidx objects close their mmap, don't drop the pointers to
them in midx-cmd.py until finished with the mmaps.

The isinstance() call may need revisiting later.  i.e. should all
indexes support close()?

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/midx-cmd.py