From: Igor Fedotov Date: Tue, 28 Sep 2021 16:49:45 +0000 (+0300) Subject: os/bluestore: cleanup onode/collection cache after NCB recovery. X-Git-Tag: v17.1.0~319^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb319b0079ffd7085b784efa61e29f9b9e4a327e;p=ceph-ci.git 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 --- 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();