OPTION(newstore_max_dir_size, OPT_U32, 1000000)
OPTION(newstore_onode_map_size, OPT_U32, 1024) // onodes per collection
OPTION(newstore_backend, OPT_STR, "rocksdb")
+OPTION(newstore_backend_options, OPT_STR, "")
OPTION(newstore_fail_eio, OPT_BOOL, true)
OPTION(newstore_sync_io, OPT_BOOL, false) // perform initial io synchronously
OPTION(newstore_sync_transaction, OPT_BOOL, false) // perform kv txn synchronously
db = NULL;
return -EIO;
}
- db->init();
+ db->init(g_conf->newstore_backend_options);
stringstream err;
if (db->create_and_open(err)) {
derr << __func__ << " erroring opening db: " << err.str() << dendl;
db = NULL;
return -EIO;
}
+ dout(1) << __func__ << " opened " << g_conf->newstore_backend
+ << " path " << path
+ << " options " << g_conf->newstore_backend_options << dendl;
return 0;
}