Signed-off-by: Sage Weil <sage@redhat.com>
return -EOPNOTSUPP;
}
+ virtual void set_cache_shards(unsigned num) { }
+
/**
* Returns 0 if the hobject is valid, -error otherwise
*
goto free_store;
}
+ store->set_cache_shards(g_conf->osd_op_num_shards);
+
ret = store->mount();
if (ret) {
derr << "OSD::mkfs: couldn't mount ObjectStore: error " << ret << dendl;
<< (journal_path.empty() ? "(no journal)" : journal_path) << dendl;
assert(store); // call pre_init() first!
+ store->set_cache_shards(g_conf->osd_op_num_shards);
+
int r = store->mount();
if (r < 0) {
derr << "OSD:init: unable to mount object store" << dendl;