mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Allow setting DB flags on main DB
This commit is contained in:
parent
2f7ddb4103
commit
d499c244cd
@ -3121,6 +3121,8 @@ int mdb_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi)
|
||||
/* main DB? */
|
||||
if (!name) {
|
||||
*dbi = MAIN_DBI;
|
||||
if (flags & (MDB_DUPSORT|MDB_REVERSEKEY))
|
||||
txn->mt_dbs[MAIN_DBI].md_flags |= (flags & (MDB_DUPSORT|MDB_REVERSEKEY));
|
||||
return MDB_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user