From: Yingxin Cheng Date: Thu, 7 Mar 2024 07:46:34 +0000 (+0800) Subject: crimson/os/cache: get_extent_viewable_by_trans, the extent should be valid X-Git-Tag: v19.1.1~376^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a7dbebae799511ab85f39e6ef451314f2a0c4ea;p=ceph.git crimson/os/cache: get_extent_viewable_by_trans, the extent should be valid Signed-off-by: Yingxin Cheng (cherry picked from commit 06cf024341284cad62100920958ade131a970902) --- diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 082241d408fa4..28471bbcd7ea3 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -449,6 +449,7 @@ public: Transaction &t, CachedExtentRef extent) { + assert(extent->is_valid()); 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);