mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 21:50:49 -05:00
Simpler mdb_drop().
MDB_DBI_CHANGED(,MAIN_DBI) is never true.
This commit is contained in:
parent
be0cdc1c9d
commit
4033f31acb
1 changed files with 1 additions and 1 deletions
|
|
@ -9536,7 +9536,7 @@ int mdb_drop(MDB_txn *txn, MDB_dbi dbi, int del)
|
|||
if (F_ISSET(txn->mt_flags, MDB_TXN_RDONLY))
|
||||
return EACCES;
|
||||
|
||||
if (dbi > MAIN_DBI && TXN_DBI_CHANGED(txn, dbi))
|
||||
if (TXN_DBI_CHANGED(txn, dbi))
|
||||
return MDB_BAD_DBI;
|
||||
|
||||
rc = mdb_cursor_open(txn, dbi, &mc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue