]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore/transaction_manager: Move CRC_NULL checks
authorMatan Breizman <mbreizma@redhat.com>
Sun, 7 Dec 2025 09:53:03 +0000 (09:53 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 8 Dec 2025 08:54:58 +0000 (08:54 +0000)
commitd91f745372135b909b7cda6814bfcc9435511363
tree18b2d02123f2b9e9e724abfd6776ec2e5283a512
parentcc04bef6218017dc6f9e726ef29575381b8773ff
crimson/os/seastore/transaction_manager: Move CRC_NULL checks

check_full_extent_integrity would allow for CRC_NULL (0) checksums
when `full_extent_integrity_check` was false. Instead, move this
check as an assertiion into TransactionManager::read_pin.

This would allow us to reuse CRC_NULL concept for more purposes e.g
skipping integrity checks when no CRC is passed (next commits).

Note: With this change check_full_extent_integrity could be called
      only on non CRC_NULL, the check would be moved in next commits.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/seastore/lba/btree_lba_manager.cc
src/crimson/os/seastore/transaction_manager.cc
src/crimson/os/seastore/transaction_manager.h