From: Yingxin Cheng Date: Wed, 31 Jul 2024 08:45:05 +0000 (+0800) Subject: crimson/os/seastore/cache: adjust get_extent_viewable_by_trans() X-Git-Tag: testing/wip-pdonnell-testing-20240813.125846-debug~36^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a81d36caadf4b1d306a48b5ba7d08f2e7295de6b;p=ceph-ci.git crimson/os/seastore/cache: adjust get_extent_viewable_by_trans() Stable-writing extents are already handled correctly in touch_extent(). Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 9922fcdf4df..14331f4e876 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -479,9 +479,7 @@ public: auto p_extent = extent->get_transactional_view(t); if (!p_extent->is_pending_in_trans(t.get_trans_id())) { t.add_to_read_set(p_extent); - if (!p_extent->is_mutation_pending()) { - touch_extent(*p_extent); - } + touch_extent(*p_extent); } // user should not see RETIRED_PLACEHOLDER extents ceph_assert(p_extent->get_type() != extent_types_t::RETIRED_PLACEHOLDER);