mdbx-test: minor fix nested case (avoid assertion failure).

Change-Id: Iad2bfc41b726e0737acda5afb354c9d70b372c86
This commit is contained in:
Leonid Yuriev 2020-10-21 00:36:36 +03:00
parent daf37363b4
commit fe8a101960

View File

@ -68,8 +68,11 @@ bool testcase_nested::teardown() {
log_notice("nested: bailout-clean due '%s'", mdbx_strerror(err));
ok = false;
}
} else
} else {
if (txn_guard)
txn_end(false);
db_table_close(dbi);
}
dbi = 0;
}
return inherited::teardown() && ok;