Close cursors when commit(writer). Factor out code.
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 4 May 2013 10:33:06 +0000 (12:33 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 4 May 2013 10:33:06 +0000 (12:33 +0200)
commit17ffe9c9922082d15f76d43c853c1bc5da517a3e
tree51c7a90b6835a94b01e32938bc5afb88a7cf937c
parentdca0cef678c285c6a173147a70fd8692ce447f62
Close cursors when commit(writer). Factor out code.

Close remaining cursors when committing a write txn. The doc says this
happens, and it avoids cursor tracking when updating mainDB + freeDB.

Rename mdb_cursor_merge() -> mdb_cursors_close() for code reuse,
and add a merge option.  Simplify its loop a bit.

Factor out cleanup of DBIs.
libraries/liblmdb/mdb.c