Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
a4d9a75a
Commit
a4d9a75a
authored
Oct 26, 2017
by
Howard Chu
Committed by
Quanah Gibson-Mount
Feb 09, 2018
Browse files
ITS#8760 fix regression in 0.9.19
parent
4ac16b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
a4d9a75a
...
...
@@ -9758,8 +9758,11 @@ int mdb_dbi_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *db
MDB_node
*
node
=
NODEPTR
(
mc
.
mc_pg
[
mc
.
mc_top
],
mc
.
mc_ki
[
mc
.
mc_top
]);
if
((
node
->
mn_flags
&
(
F_DUPDATA
|
F_SUBDATA
))
!=
F_SUBDATA
)
return
MDB_INCOMPATIBLE
;
}
else
if
(
!
(
rc
==
MDB_NOTFOUND
&&
(
flags
&
MDB_CREATE
)))
{
return
rc
;
}
else
{
if
(
rc
!=
MDB_NOTFOUND
||
!
(
flags
&
MDB_CREATE
))
return
rc
;
if
(
F_ISSET
(
txn
->
mt_flags
,
MDB_TXN_RDONLY
))
return
EACCES
;
}
/* Done here so we cannot fail after creating a new DB */
...
...
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