Fix iterate_compaction for the case of unfinished commit/rollback

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent 4e0b203552
commit e9f0639e62
4 changed files with 44 additions and 6 deletions
+4
View File
@@ -22,6 +22,10 @@ int blockstore_impl_t::dequeue_read(blockstore_op_t *op)
bool found = false;
heap->iterate_with_stable(obj, obj->lsn, [&](heap_entry_t *wr, bool stable)
{
if (wr->type() == BS_HEAP_DELETE)
{
return false;
}
if (op->version < wr->version)
{
return true;