Commit a3342578 authored by Howard Chu's avatar Howard Chu
Browse files

Tweak prev commit, use first unused slot

parent 4cabb24b
......@@ -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;
if (len == txn->mt_dbxs[i].md_name.mv_size &&
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment