Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
d499c244
Commit
d499c244
authored
Aug 11, 2011
by
Howard Chu
Browse files
Allow setting DB flags on main DB
parent
2f7ddb41
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
d499c244
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment