Do not return EBUSY when already stable in the new store

This commit is contained in:
Vitaliy Filippov
2026-02-07 16:10:39 +03:00
parent cbe51595cb
commit d6dacc67db
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1554,7 +1554,7 @@ int blockstore_heap_t::add_commit(heap_entry_t *obj, uint64_t version, uint32_t
}
if (!uncommitted)
{
return EBUSY;
return 0;
}
return add_simple(obj, version, modified_block, BS_HEAP_COMMIT);
}
+1 -1
View File
@@ -420,7 +420,7 @@ void test_compact(bool csum, bool stable)
assert(res == ENOENT);
auto obj = heap.read_entry(oid);
res = heap.add_commit(obj, 1, &mblock);
assert(res == EBUSY); // already stable
assert(res == 0); // already stable
res = heap.add_commit(obj, 3, &mblock);
assert(res == 0);
assert(mblock == 0);