projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0cdc1
)
Simpler mdb_drop().
author
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 4 Jul 2015 11:48:06 +0000
(13:48 +0200)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 4 Jul 2015 11:48:06 +0000
(13:48 +0200)
MDB_DBI_CHANGED(,MAIN_DBI) is never true.
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
f69a3a2
..
bbfdd94
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-9536,7
+9536,7
@@
int mdb_drop(MDB_txn *txn, MDB_dbi dbi, int del)
if (F_ISSET(txn->mt_flags, MDB_TXN_RDONLY))
return EACCES;
- if (
dbi > MAIN_DBI &&
TXN_DBI_CHANGED(txn, dbi))
+ if (TXN_DBI_CHANGED(txn, dbi))
return MDB_BAD_DBI;
rc = mdb_cursor_open(txn, dbi, &mc);