Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
b785bfbe
Commit
b785bfbe
authored
May 15, 2016
by
Howard Chu
Browse files
ITS#8424 init cursor in mdb_env_cwalk
parent
09e74f90
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
b785bfbe
...
...
@@ -8890,7 +8890,7 @@ mdb_env_cthr_toggle(mdb_copy *my, int st)
static
int
ESECT
mdb_env_cwalk
(
mdb_copy
*
my
,
pgno_t
*
pg
,
int
flags
)
{
MDB_cursor
mc
;
MDB_cursor
mc
=
{
0
}
;
MDB_txn
*
txn
=
my
->
mc_txn
;
MDB_node
*
ni
;
MDB_page
*
mo
,
*
mp
,
*
leaf
;
...
...
@@ -8903,7 +8903,6 @@ mdb_env_cwalk(mdb_copy *my, pgno_t *pg, int flags)
return
MDB_SUCCESS
;
mc
.
mc_snum
=
1
;
mc
.
mc_top
=
0
;
mc
.
mc_txn
=
txn
;
rc
=
mdb_page_get
(
my
->
mc_txn
,
*
pg
,
&
mc
.
mc_pg
[
0
],
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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