]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_objectstore_tool: MemStore needs a CephContext
authorDavid Zafman <dzafman@redhat.com>
Fri, 3 Oct 2014 22:12:28 +0000 (15:12 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 3 Oct 2014 22:15:05 +0000 (15:15 -0700)
Pass g_ceph_context to ObjectStore::create() needed by MemStore

Fixes: #9661
Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 64b36eb743283419700e3b2a6281704ce44a5471..abb1a988f5a00fa2cf44f39da540741d45c1e2dd 100644 (file)
@@ -2041,7 +2041,7 @@ int main(int argc, char **argv)
     return 1;
   }
 
-  ObjectStore *fs = ObjectStore::create(NULL, type, dpath, jpath, flags);
+  ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
   if (fs == NULL) {
     cerr << "Must provide --type (filestore, memstore, keyvaluestore-dev)" << std::endl;
     exit(1);