]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: minor fix in get_stats()
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 2 Sep 2024 02:27:04 +0000 (10:27 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 2 Sep 2024 02:57:56 +0000 (10:57 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.cc

index 09fdb2359bd7e525389f6f078335a53ec347f45d..e1c82a577a4d518838fc15139740ea768cb0fc40 100644 (file)
@@ -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<EXTENT_TYPES_MAX; ++_ext) {
         auto ext = static_cast<extent_types_t>(_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)) {