Need to pass in cct.
Signed-off-by: Sage Weil <sage@inktank.com>
}
string strpath(path);
std::cerr << "Using path: " << strpath << std::endl;
- LevelDBStore *store = new LevelDBStore(strpath);
+ LevelDBStore *store = new LevelDBStore(NULL, strpath);
assert(!store->create_and_open(std::cerr));
db.reset(store);
virtual void SetUp() {
assert(!store_path.empty());
- LevelDBStore *db_ptr = new LevelDBStore(store_path);
+ LevelDBStore *db_ptr = new LevelDBStore(g_ceph_context, store_path);
assert(!db_ptr->create_and_open(std::cerr));
db.reset(db_ptr);
mock.reset(new KeyValueDBMemory());
string strpath(path);
cerr << "using path " << strpath << std::endl;;
- LevelDBStore *store = new LevelDBStore(strpath);
+ LevelDBStore *store = new LevelDBStore(g_ceph_context, strpath);
assert(!store->create_and_open(cerr));
db.reset(new DBObjectMap(store));
public:
StoreTool(const string &path) {
- LevelDBStore *db_ptr = new LevelDBStore(path);
+ LevelDBStore *db_ptr = new LevelDBStore(g_ceph_context, path);
assert(!db_ptr->open(std::cerr));
db.reset(db_ptr);
}
bool start_new = false;
if (string(args[0]) == string("new")) start_new = true;
- LevelDBStore *_db = new LevelDBStore(db_path);
+ LevelDBStore *_db = new LevelDBStore(g_ceph_context, db_path);
assert(!_db->create_and_open(std::cerr));
boost::scoped_ptr<KeyValueDB> db(_db);
boost::scoped_ptr<ObjectStore> store(new FileStore(store_path, store_dev));
return 1;
}
- LevelDBStore* store(new LevelDBStore(store_path));
+ LevelDBStore* store(new LevelDBStore(g_ceph_context, store_path));
if (paranoid) {
std::cerr << "Enabling paranoid checks" << std::endl;
store->options.paranoid_checks = paranoid;