mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
allow silent commit of read-only TXNs
This commit is contained in:
parent
9860d5a43f
commit
9902a7764e
@ -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");
|
||||
mdb_txn_abort(txn);
|
||||
return EPERM;
|
||||
return MDB_SUCCESS;
|
||||
}
|
||||
|
||||
if (txn != env->me_txn) {
|
||||
|
Loading…
Reference in New Issue
Block a user