From fb319b0079ffd7085b784efa61e29f9b9e4a327e Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Tue, 28 Sep 2021 19:49:45 +0300 Subject: [PATCH] os/bluestore: cleanup onode/collection cache after NCB recovery. One needs to properly shutdown Onode cache if NCB stuff has performed full recovery. Signed-off-by: Igor Fedotov --- src/os/bluestore/BlueStore.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index bab1b77e310..7a421c59f1b 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -17825,6 +17825,9 @@ int BlueStore::read_allocation_from_drive_on_startup() if (ret < 0) { return ret; } + auto shutdown_cache = make_scope_guard([&] { + _shutdown_cache(); + }); read_alloc_stats_t stats = {}; utime_t start = ceph_clock_now(); -- 2.47.3