while (in_flight)
cond.Wait(lock);
store->umount();
- // fixme: this is bluestore specific, but...
- if (!g_conf->bluestore_fsck_on_mount &&
- !g_conf->bluestore_fsck_on_umount) {
- store->fsck();
- }
+ store->fsck();
store->mount();
}
gen_type rng(time(NULL));
coll_t cid(spg_t(pg_t(0,555), shard_id_t::NO_SHARD));
+ g_ceph_context->_conf->set_val("bluestore_fsck_on_mount", "false");
+ g_ceph_context->_conf->set_val("bluestore_fsck_on_umount", "false");
+ g_ceph_context->_conf->apply_changes(NULL);
+
SyntheticWorkloadState test_obj(store.get(), &gen, &rng, &osr, cid,
max_obj, max_wr, align);
test_obj.init();
}
test_obj.wait_for_done();
test_obj.shutdown();
+
+ g_ceph_context->_conf->set_val("bluestore_fsck_on_mount", "true");
+ g_ceph_context->_conf->set_val("bluestore_fsck_on_umount", "true");
+ g_ceph_context->_conf->apply_changes(NULL);
}
TEST_P(StoreTest, Synthetic) {