mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 00:14:25 -05:00
Tweak MDB_PREV_MULTIPLE for uninit'd cursor
This commit is contained in:
parent
d909ab2f36
commit
3f62b727cc
1 changed files with 5 additions and 3 deletions
|
|
@ -1573,7 +1573,7 @@ mdb_strerror(int err)
|
|||
* and the actual use of the message uses more than 4K of stack.
|
||||
*/
|
||||
#define MSGSIZE 1024
|
||||
#define PADSIZE 4096
|
||||
#define PADSIZE 4096
|
||||
char buf[MSGSIZE+PADSIZE], *ptr = buf;
|
||||
#endif
|
||||
int i;
|
||||
|
|
@ -7007,8 +7007,10 @@ fetchm:
|
|||
break;
|
||||
}
|
||||
if (!(mc->mc_flags & C_INITIALIZED))
|
||||
rc = mdb_cursor_first(mc, key, data);
|
||||
else {
|
||||
rc = mdb_cursor_last(mc, key, data);
|
||||
else
|
||||
rc = MDB_SUCCESS;
|
||||
if (rc == MDB_SUCCESS) {
|
||||
MDB_cursor *mx = &mc->mc_xcursor->mx_cursor;
|
||||
if (mx->mc_flags & C_INITIALIZED) {
|
||||
rc = mdb_cursor_sibling(mx, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue