mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
fix test users of LevelDBStore
Need to pass in cct. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
3cc0f3d803
commit
446e0770c7
@ -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);
|
||||
|
||||
|
@ -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());
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user