Skip to content

Commit 684f193

Browse files
os/bluestore : Assigning a named variable to ceph::time_guard to prevent immediate destruction
Fixes: https://tracker.ceph.com/issues/70132 Signed-off-by: Jaya Prakash <[email protected]>
1 parent 8b833f5 commit 684f193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/bluestore/BlueStore.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13813,7 +13813,7 @@ int BlueStore::omap_iterate(
1381313813
if (ret == omap_iter_ret_t::STOP) {
1381413814
break;
1381513815
} else if (ret == omap_iter_ret_t::NEXT) {
13816-
ceph::time_guard<ceph::mono_clock>{next_lat_acc};
13816+
ceph::time_guard<ceph::mono_clock> measure_next{next_lat_acc};
1381713817
it->next();
1381813818
} else {
1381913819
ceph_abort();

0 commit comments

Comments
 (0)