mdbx-test: refine 'append' testcast (minor).

Change-Id: I79ea16046713a085e62e01eeb0978fc4e6766750
This commit is contained in:
Leonid Yuriev
2019-06-22 13:13:15 +03:00
parent 3fc610f860
commit 243b01dd63
3 changed files with 23 additions and 15 deletions

View File

@@ -432,6 +432,14 @@ void testcase::db_table_drop(MDBX_dbi handle) {
}
}
void testcase::db_table_clear(MDBX_dbi handle) {
log_trace(">> testcase::db_table_clear, handle %u", handle);
int rc = mdbx_drop(txn_guard.get(), handle, false);
if (unlikely(rc != MDBX_SUCCESS))
failure_perror("mdbx_drop(delete=false)", rc);
log_trace("<< testcase::db_table_clear");
}
void testcase::db_table_close(MDBX_dbi handle) {
log_trace(">> testcase::db_table_close, handle %u", handle);
assert(!txn_guard);