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:
0ab8415
)
Fix last delete from a subpage
author
Howard Chu
<hyc@symas.com>
Mon, 19 Sep 2011 00:07:47 +0000
(17:07 -0700)
committer
Howard Chu
<hyc@symas.com>
Mon, 19 Sep 2011 00:07:47 +0000
(17:07 -0700)
libraries/libmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/libmdb/mdb.c
b/libraries/libmdb/mdb.c
index
21d468b
..
6f279e3
100644
(file)
--- a/
libraries/libmdb/mdb.c
+++ b/
libraries/libmdb/mdb.c
@@
-3843,7
+3843,7
@@
mdb_cursor_del(MDB_cursor *mc, unsigned int flags)
}
rc = mdb_cursor_del(&mc->mc_xcursor->mx_cursor, 0);
/* If sub-DB still has entries, we're done */
- if (mc->mc_xcursor->mx_db.md_
root != P_INVALID
) {
+ if (mc->mc_xcursor->mx_db.md_
entries
) {
if (leaf->mn_flags & F_SUBDATA) {
/* update subDB info */
MDB_db *db = NODEDATA(leaf);