]> 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>
Tue, 3 Mar 2015 18:44:17 +0000 (10:44 -0800)
Pass g_ceph_context to ObjectStore::create() needed by MemStore

Fixes: #9661
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 0b155d00c542f0d8b8b5b0324dac4b3cf7ff37b5)

src/tools/ceph_objectstore_tool.cc

index 22007ffaeb171f16b0b6b7b80398575c11d637a3..ce7c889acb1bbdefb8352ad27172fab19f9c638e 100644 (file)
@@ -2039,7 +2039,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);