]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: cleanup onode/collection cache after NCB recovery.
authorIgor Fedotov <ifedotov@suse.com>
Tue, 28 Sep 2021 16:49:45 +0000 (19:49 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Tue, 2 Nov 2021 14:26:39 +0000 (17:26 +0300)
One needs to properly shutdown Onode cache if NCB stuff has performed
full recovery.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/BlueStore.cc

index bab1b77e310a3dd889775ea6f713ef1261189e2f..7a421c59f1badf8d827493cf46b007346ecaf005 100644 (file)
@@ -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();