Allow multiple writes with the same version

This commit is contained in:
Vitaliy Filippov
2025-11-23 19:08:23 +03:00
parent abf741048a
commit fb83ebbfff
2 changed files with 5 additions and 16 deletions
+2 -2
View File
@@ -185,13 +185,13 @@ void test_mvcc(bool csum)
assert(heap.read_locked_entry(oid, copy_id) == obj);
assert(_test_do_small_write(heap, dsk, 1, 0, 1, 0, 4096, 0) == EINVAL);
_test_small_write(heap, dsk, 1, 0, 2, 8192, 4096, 16384, true);
obj = heap.read_entry(oid, NULL);
assert(check_used_space(heap, dsk, 0));
assert(heap.get_meta_block_used_space(0) == old_size + obj->get_writes()->get_size(&heap));
assert(_test_do_small_write(heap, dsk, 1, 0, 1, 0, 4096, 0) == EINVAL);
assert(!heap.read_locked_entry(oid, UINT64_MAX));
assert(heap.read_locked_entry(oid, copy_id) == obj); // small_write isn't MVCCed