Commit e3c8beb8 authored by Howard Chu's avatar Howard Chu
Browse files

Fix its6794 test

Must NULL out indexing cursors when closing tool txn
parent 09ae5524
......@@ -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 ))) {
......
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