Do not return EBUSY when already stable in the new store
This commit is contained in:
@@ -1554,7 +1554,7 @@ int blockstore_heap_t::add_commit(heap_entry_t *obj, uint64_t version, uint32_t
|
|||||||
}
|
}
|
||||||
if (!uncommitted)
|
if (!uncommitted)
|
||||||
{
|
{
|
||||||
return EBUSY;
|
return 0;
|
||||||
}
|
}
|
||||||
return add_simple(obj, version, modified_block, BS_HEAP_COMMIT);
|
return add_simple(obj, version, modified_block, BS_HEAP_COMMIT);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ void test_compact(bool csum, bool stable)
|
|||||||
assert(res == ENOENT);
|
assert(res == ENOENT);
|
||||||
auto obj = heap.read_entry(oid);
|
auto obj = heap.read_entry(oid);
|
||||||
res = heap.add_commit(obj, 1, &mblock);
|
res = heap.add_commit(obj, 1, &mblock);
|
||||||
assert(res == EBUSY); // already stable
|
assert(res == 0); // already stable
|
||||||
res = heap.add_commit(obj, 3, &mblock);
|
res = heap.add_commit(obj, 3, &mblock);
|
||||||
assert(res == 0);
|
assert(res == 0);
|
||||||
assert(mblock == 0);
|
assert(mblock == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user