mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix txn_commit error check
This commit is contained in:
parent
23219ed32a
commit
234cd9dfb5
1 changed files with 5 additions and 1 deletions
|
|
@ -1913,7 +1913,11 @@ mdb_txn_commit(MDB_txn *txn)
|
|||
key.mv_data = &cur;
|
||||
|
||||
mdb_cursor_set(&mc, &key, NULL, MDB_SET, &exact);
|
||||
mdb_cursor_del(&mc, 0);
|
||||
rc = mdb_cursor_del(&mc, 0);
|
||||
if (rc) {
|
||||
mdb_txn_abort(txn);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
env->me_pgfirst = 0;
|
||||
env->me_pglast = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue