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

(ITS#8250) Allowing transaction to be created in the reset state



Full_Name: James Rouzier
Version: 
OS: 
URL: https://github.com/rouzier/openldap/commit/54f60e7eb699778197fa154953fccfa8ecc41d2a.patch
Submission from: (NULL) (70.81.32.80)


This patch allows mdb_txn_begin to create a transaction in the reset state.

So instead of doing this.
mdb_txn_begin(env, NULL, MDB_READONLY,&txn);
mdb_txn_reset(txn);

You now can just do this.
mdb_txn_begin(env, NULL, MDB_READONLY| MDB_TXNRESET,&txn);

You can view the patch here 
https://github.com/rouzier/openldap/commit/54f60e7eb699778197fa154953fccfa8ecc41d2a


The attached patch file is derived from OpenLDAP Software. All of the
modifications to OpenLDAP Software represented in the following patch(es) were
developed by James Rouzier <rouzier@gmail.com>.
I have not assigned rights and/or interest in this work to any party.