Add a regression test for LOC_CORRUPTED cleared on second scrub

This commit is contained in:
Vitaliy Filippov
2026-06-13 19:56:06 +03:00
parent 91698404a7
commit 213f76c66c
2 changed files with 157 additions and 2 deletions
+2 -2
View File
@@ -185,11 +185,11 @@ struct osd_test_fixture_t
auto *op = *it;
if (op->opcode == BS_OP_LIST)
{
it = bs->queued.erase(it);
it = bs->queued.erase(it++);
op->retval = 0;
op->version = 0;
op->buf = NULL;
op->callback(op);
std::function<void(blockstore_op_t*)>(op->callback)(op);
}
else
++it;