mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
Merge remote-tracking branch 'origin/mdb.RE/0.9'
This commit is contained in:
commit
e8c7a365b9
@ -1,6 +1,6 @@
|
|||||||
LMDB 0.9 Change Log
|
LMDB 0.9 Change Log
|
||||||
|
|
||||||
LMDB 0.9.20 Release (2017/01/11)
|
LMDB 0.9.20 Release Engineering
|
||||||
Fix mdb_load with escaped plaintext (ITS#8558)
|
Fix mdb_load with escaped plaintext (ITS#8558)
|
||||||
Fix mdb_cursor_last / mdb_put interaction (ITS#8557)
|
Fix mdb_cursor_last / mdb_put interaction (ITS#8557)
|
||||||
|
|
||||||
|
@ -6345,19 +6345,10 @@ mdb_cursor_get(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
|||||||
rc = MDB_INCOMPATIBLE;
|
rc = MDB_INCOMPATIBLE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!(mc->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED)) {
|
|
||||||
rc = EINVAL;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (mc->mc_xcursor->mx_cursor.mc_flags & C_EOF) {
|
|
||||||
MDB_cursor *mx = &mc->mc_xcursor->mx_cursor;
|
|
||||||
if (mx->mc_ki[mx->mc_top] >= NUMKEYS(mx->mc_pg[mx->mc_top])-1) {
|
|
||||||
rc = MDB_NOTFOUND;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
mx->mc_flags ^= C_EOF;
|
|
||||||
}
|
|
||||||
rc = MDB_SUCCESS;
|
rc = MDB_SUCCESS;
|
||||||
|
if (!(mc->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED) ||
|
||||||
|
(mc->mc_xcursor->mx_cursor.mc_flags & C_EOF))
|
||||||
|
break;
|
||||||
goto fetchm;
|
goto fetchm;
|
||||||
case MDB_NEXT_MULTIPLE:
|
case MDB_NEXT_MULTIPLE:
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user