mdbx: fix dummy coverity-scan warning.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-11-02 12:18:06 +03:00
parent 3bec0dbc6e
commit 7628369819

View File

@@ -1090,7 +1090,7 @@ next_gc:
rkl_t *rkl = &txn->wr.gc.reclaimed; rkl_t *rkl = &txn->wr.gc.reclaimed;
const char *rkl_name = "reclaimed"; const char *rkl_name = "reclaimed";
if (mc->dbi_state != txn->dbi_state && if (mc->dbi_state != txn->dbi_state &&
(MDBX_DEBUG || pnl_size(txn->wr.repnl) > (size_t)gc->tree->height + gc->tree->height + 3)) { (MDBX_DEBUG > 0 || pnl_size(txn->wr.repnl) > (size_t)gc->tree->height + gc->tree->height + 3)) {
gc->next = txn->cursors[FREE_DBI]; gc->next = txn->cursors[FREE_DBI];
txn->cursors[FREE_DBI] = gc; txn->cursors[FREE_DBI] = gc;
ret.err = cursor_del(gc, 0); ret.err = cursor_del(gc, 0);