From: David Zafman Date: Fri, 3 Oct 2014 22:12:28 +0000 (-0700) Subject: ceph_objectstore_tool: MemStore needs a CephContext X-Git-Tag: v0.88~112^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0b155d00c542f0d8b8b5b0324dac4b3cf7ff37b5;p=ceph.git ceph_objectstore_tool: MemStore needs a CephContext Pass g_ceph_context to ObjectStore::create() needed by MemStore Fixes: #9661 Signed-off-by: David Zafman --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 64b36eb74328..abb1a988f5a0 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -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);