[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7660) LMDB: Proposing a small addition to the API: mdb_txn_env



Full_Name: Salvador Ortiz
Version: 24
OS: Linux
URL: ftp://ftp.msg.com.mx/pub/varios/Add-mdb_txn_env-to-API.patch
Submission from: (NULL) (187.162.45.111)


I'm writing from scratch a wrapper of LMDB for the Perl language, the project is
progressing fast and looks very promising. Thank you for a wonderful library!

I want to avoid as much as possible the need to duplicate LMDB's state in perl,
in particular dbi's flags, so I need a method to obtain the MDB_env from a
MDB_txn, but the required API is missing.

In the same spirit of mdb_cursor_txn or mdb_cursor_dbi I propose adding
mdb_txn_env.

Provided a patch against gitorious mdb.master.

Any comments or questions more than welcome.

Regards.

Salvador