Fix its6794 test

Must NULL out indexing cursors when closing tool txn
This commit is contained in:
Howard Chu 2016-12-21 14:39:47 +00:00
parent 09ae5524da
commit e3c8beb8d0

View file

@ -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 ))) {