From: Xuehan Xu Date: Wed, 18 Jun 2025 10:09:22 +0000 (+0800) Subject: crimson/os/seastore/cache: fix inappropriate lambda by-reference X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e36b43f6447609d7d483ccc1a08506eef12d1a3f;p=ceph.git crimson/os/seastore/cache: fix inappropriate lambda by-reference captures in get_extent_viewable_by_trans() Fixes: https://tracker.ceph.com/issues/71719 Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 9d3193b9e9cb..3eca0e6d68d6 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -555,7 +555,7 @@ public: return trans_intr::make_interruptible( p_extent->wait_io() - ).then_interruptible([p_extent, needs_touch, needs_step_2, &t, this, &t_src] { + ).then_interruptible([p_extent, needs_touch, needs_step_2, &t, this, t_src] { if (needs_step_2) { t.maybe_add_to_read_set_step_2(p_extent); }