From c8a7d3d9494e9bd9fc18f99708511a0303e2b919 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Mon, 2 Sep 2024 10:27:04 +0800 Subject: [PATCH] crimson/os/seastore/cache: minor fix in get_stats() Signed-off-by: Yingxin Cheng --- src/crimson/os/seastore/cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 09fdb2359bd7e..e1c82a577a4d5 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)) { -- 2.39.5