From f81aaf09dbd60c442dbb8dc252b23eada9aea12e Mon Sep 17 00:00:00 2001 From: Jaya Prakash Date: Wed, 19 Feb 2025 22:07:51 +0530 Subject: [PATCH] squid: os/bluestore : Assigning a named variable to ceph::time_guard to prevent immediate destruction Fixes: https://tracker.ceph.com/issues/70133 Signed-off-by: Jaya Prakash (cherry picked from commit 684f1938506d09d69944796da9c51b228acab972) --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b143937e9453b..f1bdee1148189 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -13498,7 +13498,7 @@ int BlueStore::omap_iterate( if (ret == omap_iter_ret_t::STOP) { break; } else if (ret == omap_iter_ret_t::NEXT) { - ceph::time_guard{next_lat_acc}; + ceph::time_guard measure_next{next_lat_acc}; it->next(); } else { ceph_abort(); -- 2.39.5