mdbx-test: more for --ignore-dbfull.

This commit is contained in:
Leonid Yuriev
2022-01-21 01:29:59 +03:00
parent 981b10d10a
commit 50b843ecb7
3 changed files with 10 additions and 3 deletions

View File

@@ -453,6 +453,8 @@ bailout:
log_notice("downhill: bailout at commit due '%s'", mdbx_strerror(err));
}
if (!rc && err == MDBX_MAP_FULL && config.params.ignore_dbfull)
rc = true;
if (dbi) {
if (config.params.drop_table && !mode_readonly()) {
txn_begin(false);
@@ -460,7 +462,8 @@ bailout:
err = breakable_commit();
if (unlikely(err != MDBX_SUCCESS)) {
log_notice("hill: bailout-clean due '%s'", mdbx_strerror(err));
return rc;
if (err != MDBX_MAP_FULL || !config.params.ignore_dbfull)
rc = false;
}
} else
db_table_close(dbi);