mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
Fix its6794 test
Must NULL out indexing cursors when closing tool txn
This commit is contained in:
parent
09ae5524da
commit
e3c8beb8d0
1 changed files with 8 additions and 0 deletions
|
|
@ -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 ))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue