[Date Prev][Date Next]
(ITS#8010) LMDB: New mdb_txn_begin() flag to init as reset
Full_Name: Scott Kevill
Submission from: (NULL) (126.96.36.199)
Using a read-only txn with mdb_txn_reset() and mdb_txn_renew() is a little
clumsy at the moment because the first use needs to be a mdb_txn_begin().
This means either an initial mdb_txn_begin() + mdb_txn_reset() to get it into
the reset state, or else for every operation to do something like:
... do work ...
An additional flag (eg. MDB_RESET?) for mdb_txn_begin() that only worked in
conjunction with MDB_RDONLY could save that (minor) wasted work.