mdbx: fix 'db_dummy' inside mdbx_dbi_open_ex().

Change-Id: I70a21c9b77a43c5af749da5723fa965487a056b0
This commit is contained in:
Leo Yuriev 2018-08-02 11:14:46 +03:00
parent d72ba6fd69
commit 6a51343b89

View File

@ -10922,10 +10922,10 @@ int mdbx_dbi_open_ex(MDBX_txn *txn, const char *table_name, unsigned user_flags,
}
unsigned dbflag = DB_FRESH | DB_VALID | DB_USRVALID;
MDBX_db db_dummy;
if (unlikely(rc)) {
/* MDBX_NOTFOUND and MDBX_CREATE: Create new DB */
assert(rc == MDBX_NOTFOUND);
MDBX_db db_dummy;
memset(&db_dummy, 0, sizeof(db_dummy));
db_dummy.md_root = P_INVALID;
db_dummy.md_flags = user_flags & PERSISTENT_FLAGS;