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, "max_write_buffer_number=16,min_write_buffer_number_to_merge=6")
+OPTION(newstore_rocksdb_options, OPT_STR, "max_write_buffer_number=16,min_write_buffer_number_to_merge=6")
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(g_conf->newstore_backend_options);
+ string options;
+ if (g_conf->newstore_backend == "rocksdb")
+ options = g_conf->newstore_rocksdb_options;
+ db->init(options);
stringstream err;
if (db->create_and_open(err)) {
derr << __func__ << " erroring opening db: " << err.str() << dendl;
return -EIO;
}
dout(1) << __func__ << " opened " << g_conf->newstore_backend
- << " path " << path
- << " options " << g_conf->newstore_backend_options << dendl;
+ << " path " << path << " options " << options << dendl;
return 0;
}