diff --git a/src/crimson/os/seastore/btree/fixed_kv_btree.h b/src/crimson/os/seastore/btree/fixed_kv_btree.h index b0901213716bf..504eca9e6fbf2 100644 --- a/src/crimson/os/seastore/btree/fixed_kv_btree.h +++ b/src/crimson/os/seastore/btree/fixed_kv_btree.h @@ -1040,6 +1040,7 @@ class FixedKVBtree { n_fixed_kv_extent->get_bptr().c_str()); n_fixed_kv_extent->set_modify_time(fixed_kv_extent.get_modify_time()); n_fixed_kv_extent->range = n_fixed_kv_extent->get_node_meta(); + n_fixed_kv_extent->set_last_committed_crc(fixed_kv_extent.get_last_committed_crc()); if (fixed_kv_extent.get_type() == internal_node_t::TYPE || leaf_node_t::do_has_children) { diff --git a/src/crimson/os/seastore/transaction_manager.cc b/src/crimson/os/seastore/transaction_manager.cc index 9708a20ea4fd7..e39821db621b7 100644 --- a/src/crimson/os/seastore/transaction_manager.cc +++ b/src/crimson/os/seastore/transaction_manager.cc @@ -566,7 +566,7 @@ TransactionManager::rewrite_logical_extent( nlextent->get_bptr().c_str()); nlextent->set_laddr(lextent->get_laddr() + off); nlextent->set_modify_time(lextent->get_modify_time()); - nlextent->set_last_committed_crc(nlextent->calc_crc32c()); + nlextent->set_last_committed_crc(lextent->get_last_committed_crc()); DEBUGT("rewriting logical extent -- {} to {}", t, *lextent, *nlextent); /* This update_mapping is, strictly speaking, unnecessary for delayed_alloc