Skip to content
Snippets Groups Projects
Commit 6be93755 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Fix its6794 test

Must NULL out indexing cursors when closing tool txn
parent f3ef1ca2
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,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;
MDB_TOOL_IDL_FLUSH( be, mdb_tool_txn );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment