From 9fb645693bfb540fd77cd9faef4f063f3a453546 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 4 Feb 2026 01:23:12 +0300 Subject: [PATCH] Fix checksums with BIG_INTENT writes in the new store --- src/blockstore/blockstore_heap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockstore/blockstore_heap.cpp b/src/blockstore/blockstore_heap.cpp index 2a22d7dd..2a16c974 100644 --- a/src/blockstore/blockstore_heap.cpp +++ b/src/blockstore/blockstore_heap.cpp @@ -1457,10 +1457,10 @@ int blockstore_heap_t::add_big_intent(object_id oid, heap_entry_t **obj_ptr, uin if (dsk->data_csum_type) { if (checksums) - memcpy(wr->get_checksums(this), checksums, dsk->clean_entry_bitmap_size); + memcpy(wr->get_checksums(this), checksums, get_csum_size(wr)); else { - memcpy(wr->get_checksums(this), obj->get_checksums(this), dsk->clean_entry_bitmap_size); + memcpy(wr->get_checksums(this), obj->get_checksums(this), get_csum_size(wr)); calc_checksums(wr, (uint8_t*)data, true, offset, len); } }