From: Yingxin Cheng Date: Mon, 2 Sep 2024 02:27:04 +0000 (+0800) Subject: crimson/os/seastore/cache: minor fix in get_stats() X-Git-Tag: v20.0.0~1112^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c8a7d3d9494e9bd9fc18f99708511a0303e2b919;p=ceph.git crimson/os/seastore/cache: minor fix in get_stats() Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 09fdb2359bd7..e1c82a577a4d 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -2317,7 +2317,7 @@ cache_stats_t Cache::get_stats( const auto& io_by_ext = get_by_src(_trans_io_by_src_ext, src); for (uint8_t _ext=0; _ext(_ext); - const auto extent_io = get_by_ext(io_by_ext, ext); + const auto& extent_io = get_by_ext(io_by_ext, ext); if (is_data_type(ext)) { data_io.add(extent_io); } else if (is_logical_metadata_type(ext)) {