From d6dacc67db1fcdebeb51af15d8bada9e0eed8af6 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 7 Feb 2026 16:10:39 +0300 Subject: [PATCH] Do not return EBUSY when already stable in the new store --- src/blockstore/blockstore_heap.cpp | 2 +- src/test/test_heap.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockstore/blockstore_heap.cpp b/src/blockstore/blockstore_heap.cpp index 7bb511f9..604cb2c3 100644 --- a/src/blockstore/blockstore_heap.cpp +++ b/src/blockstore/blockstore_heap.cpp @@ -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); } diff --git a/src/test/test_heap.cpp b/src/test/test_heap.cpp index 7feebff6..7ef02a97 100644 --- a/src/test/test_heap.cpp +++ b/src/test/test_heap.cpp @@ -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);