fix test users of LevelDBStore

Need to pass in cct.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-05-30 15:53:35 -07:00
parent 3cc0f3d803
commit 446e0770c7
6 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@ int main() {
}
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);

View File

@ -37,7 +37,7 @@ public:
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());

View File

@ -518,7 +518,7 @@ public:
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));

View File

@ -27,7 +27,7 @@ class StoreTool
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);
}

View File

@ -63,7 +63,7 @@ int main(int argc, char **argv) {
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));

View File

@ -87,7 +87,7 @@ int main(int argc, char **argv) {
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;