Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
return 0;
}
-void BlueStore::_close_db_leave_bluefs()
-{
- ceph_assert(db);
- delete db;
- db = nullptr;
-}
-
void BlueStore::_close_db()
{
dout(10) << __func__ << ":read_only=" << db_was_opened_read_only
dout(10) << __func__ << " statfs persisted." << dendl;
ceph_assert(r >= 0);
}
- _close_db_leave_bluefs();
+ ceph_assert(db);
+ delete db;
+ db = nullptr;
if (do_destage && fm && fm->is_null_manager()) {
int ret = store_allocator(alloc);
bool to_repair_db=false,
bool read_only = false);
void _close_db();
- void _close_db_leave_bluefs();
int _open_fm(KeyValueDB::Transaction t,
bool read_only,
bool db_avail,