mdbx: изоляция txl-списков от кода PNL.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-06-18 11:35:56 +03:00
parent bb37c93dd5
commit ecf5acfff0
3 changed files with 19 additions and 15 deletions

View File

@@ -183,7 +183,7 @@ static bool stochastic_pass(const unsigned start, const unsigned width, const un
txnid_t lowest = UINT_MAX;
txnid_t highest = 0;
while (MDBX_PNL_GETSIZE(l) < n) {
while (txl_size(l) < n) {
txnid_t id = (txnid_t)(prng() % width + start);
if (id < MIN_TXNID || id >= INVALID_TXNID)
continue;
@@ -227,7 +227,7 @@ static bool stochastic_pass(const unsigned start, const unsigned width, const un
txl_sort(l);
CHECK_EQ(rkl_len(&k), n);
CHECK_EQ(MDBX_PNL_GETSIZE(l), n);
CHECK_EQ(txl_size(l), n);
f = rkl_iterator(&k, false);
r = rkl_iterator(&k, true);