Commit 9902a776 authored by Howard Chu's avatar Howard Chu
Browse files

allow silent commit of read-only TXNs

parent 9860d5a4
......@@ -778,9 +778,8 @@ mdb_txn_commit(MDB_txn *txn)
env = txn->mt_env;
if (F_ISSET(txn->mt_flags, MDB_TXN_RDONLY)) {
DPRINTF("attempt to commit read-only transaction");
return EPERM;
if (txn != env->me_txn) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment