From fe8a101960a9b95d5295314c6f5773d912c47f30 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 21 Oct 2020 00:36:36 +0300 Subject: [PATCH] mdbx-test: minor fix nested case (avoid assertion failure). Change-Id: Iad2bfc41b726e0737acda5afb354c9d70b372c86 --- test/nested.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/nested.cc b/test/nested.cc index 2456886e..d26382bf 100644 --- a/test/nested.cc +++ b/test/nested.cc @@ -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;