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
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment