Merge pull request #70418 from knrt10/fix-crimson-osd-abort-lba-tree

crimson/seastore: keep on-page checksum in sync after merge_content_to
This commit is contained in:
Kautilya Tripathi 2026-07-23 19:46:12 +05:30 committed by GitHub
commit b385483049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -543,8 +543,10 @@ struct FixedKVInternalNode
}
if (pending_version.get_last_committed_crc()) {
// if pending_version has already calculated its crc,
// calculate it again.
pending_version.set_last_committed_crc(pending_version.calc_crc32c());
// calculate it again and keep the on-page checksum in sync.
auto crc = pending_version.calc_crc32c();
pending_version.set_last_committed_crc(crc);
pending_version.update_in_extent_chksum_field(crc);
}
}
}

View File

@ -394,8 +394,10 @@ struct LBALeafNode
if (pending_version.is_initial_pending() &&
pending_version.get_last_committed_crc()) {
// if pending_version has already calculated its crc,
// calculate it again.
pending_version.set_last_committed_crc(pending_version.calc_crc32c());
// calculate it again and keep the on-page checksum in sync.
auto crc = pending_version.calc_crc32c();
pending_version.set_last_committed_crc(crc);
pending_version.update_in_extent_chksum_field(crc);
}
return modified;
}