mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
FIx prev commit
This commit is contained in:
parent
0ce6bb4be0
commit
282be11654
@ -2127,7 +2127,7 @@ mdb_txn_commit(MDB_txn *txn)
|
|||||||
if (env->me_pghead) {
|
if (env->me_pghead) {
|
||||||
/* make sure first page of freeDB is touched and on freelist */
|
/* make sure first page of freeDB is touched and on freelist */
|
||||||
rc = mdb_page_search(&mc, NULL, MDB_PS_MODIFY);
|
rc = mdb_page_search(&mc, NULL, MDB_PS_MODIFY);
|
||||||
if (rc) {
|
if (rc && rc != MDB_NOTFOUND) {
|
||||||
fail:
|
fail:
|
||||||
mdb_txn_abort(txn);
|
mdb_txn_abort(txn);
|
||||||
return rc;
|
return rc;
|
||||||
@ -2163,7 +2163,7 @@ free2:
|
|||||||
key.mv_size = MAXKEYSIZE+1;
|
key.mv_size = MAXKEYSIZE+1;
|
||||||
key.mv_data = NULL;
|
key.mv_data = NULL;
|
||||||
rc = mdb_page_search(&mc, &key, MDB_PS_MODIFY);
|
rc = mdb_page_search(&mc, &key, MDB_PS_MODIFY);
|
||||||
if (rc)
|
if (rc && rc != MDB_NOTFOUND)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
#if MDB_DEBUG > 1
|
#if MDB_DEBUG > 1
|
||||||
|
Loading…
Reference in New Issue
Block a user