]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore/onode_manager: populate value recorders of onodes to 53305/head
authorXuehan Xu <xuxuehan@qianxin.com>
Wed, 6 Sep 2023 06:56:51 +0000 (14:56 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Mon, 11 Sep 2023 03:19:25 +0000 (11:19 +0800)
commit6c236bb63a9a49c7f9e2dab03a5fe0bb016560f0
tree15b5a1019fae7a08428279e77392b203a993b838
parent1fff527d7151360aa70eda3699186b6d6a09eae2
crimson/os/seastore/onode_manager: populate value recorders of onodes to
be erased

Otherwise, the following modification sequence with the same transaction
might lead to onode extents' crc inconsistency during journal replay:

1. modify the last mapping in an onode extent;
2. erase the last mapping in that onode extent.

During journal replay, if the first modification is not recorded in the
delta, the onode extent's content would be inconsistent with that before
the system reboot

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/onode_manager/staged-fltree/fltree_onode_manager.cc