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
Lukas However
OpenLDAP
Commits
e3c8beb8
Commit
e3c8beb8
authored
Dec 21, 2016
by
Howard Chu
Browse files
Fix its6794 test
Must NULL out indexing cursors when closing tool txn
parent
09ae5524
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/tools.c
View file @
e3c8beb8
...
...
@@ -198,6 +198,14 @@ int mdb_tool_entry_close(
mdb_cursor_close
(
cursor
);
cursor
=
NULL
;
}
{
struct
mdb_info
*
mdb
=
be
->
be_private
;
if
(
mdb
)
{
int
i
;
for
(
i
=
0
;
i
<
mdb
->
mi_nattrs
;
i
++
)
mdb
->
mi_attrs
[
i
]
->
ai_cursor
=
NULL
;
}
}
if
(
mdb_tool_txn
)
{
int
rc
;
if
((
rc
=
mdb_txn_commit
(
mdb_tool_txn
)))
{
...
...
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