mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8542 mdb_dbi_open(): Protect mainDB cursors
This commit is contained in:
parent
47393f4ea2
commit
e8e8293359
1 changed files with 2 additions and 1 deletions
|
|
@ -9724,7 +9724,8 @@ int mdb_dbi_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *db
|
|||
memset(&dummy, 0, sizeof(dummy));
|
||||
dummy.md_root = P_INVALID;
|
||||
dummy.md_flags = flags & PERSISTENT_FLAGS;
|
||||
rc = mdb_cursor_put(&mc, &key, &data, F_SUBDATA);
|
||||
WITH_CURSOR_TRACKING(mc,
|
||||
rc = mdb_cursor_put(&mc, &key, &data, F_SUBDATA));
|
||||
dbflag |= DB_DIRTY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue