mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-23 07:12:56 -05:00
Tweak prev commit, use first unused slot
This commit is contained in:
parent
4cabb24b83
commit
a334257800
1 changed files with 1 additions and 1 deletions
|
|
@ -6209,7 +6209,7 @@ int mdb_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi)
|
|||
for (i=2; i<txn->mt_numdbs; i++) {
|
||||
if (!txn->mt_dbxs[i].md_name.mv_size) {
|
||||
/* Remember this free slot */
|
||||
unused = i;
|
||||
if (!unused) unused = i;
|
||||
continue;
|
||||
}
|
||||
if (len == txn->mt_dbxs[i].md_name.mv_size &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue