Using memdb for bluestore kvbackend, we will hit segfault when we use
'kill' command to shut down osd process. After destructing pg, some
reference to bluestore will be release, but bluestore has been deleted
at this time.
Signed-off-by: Haodong Tang <haodong.tang@intel.com>
<< cpp_strerror(r) << dendl;
}
- dout(10) << "syncing store" << dendl;
- enable_disable_fuse(true);
- store->umount();
- delete store;
- store = 0;
- dout(10) << "Store synced" << dendl;
{
Mutex::Locker l(pg_stat_queue_lock);
#endif
cct->_conf->remove_observer(this);
+ dout(10) << "syncing store" << dendl;
+ enable_disable_fuse(true);
+ store->umount();
+ delete store;
+ store = 0;
+ dout(10) << "Store synced" << dendl;
+
monc->shutdown();
osd_lock.Unlock();