]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: Check for keyvaluestore experimental feature
authorDavid Zafman <dzafman@redhat.com>
Tue, 10 Feb 2015 01:28:04 +0000 (17:28 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:20 +0000 (12:50 -0800)
Don't list keyvaluestore as a valid type if feature not enabled

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit fb2f9d500e52aa0834666550a684fe991701c9dd)

src/tools/ceph_objectstore_tool.cc

index 425044d18519714c1269cfd0195b8f041cac1963..be436b8eaba30864054ad42c2386ed3de76360a0 100644 (file)
@@ -2519,6 +2519,11 @@ int main(int argc, char **argv)
   ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
   if (fs == NULL) {
     cerr << "Must provide --type (filestore, memstore, keyvaluestore)" << std::endl;
+    if (type == "keyvaluestore") {
+      cerr << "Add \"keyvaluestore\" to "
+           << "enable_experimental_unrecoverable_data_corrupting_features"
+           << std::endl;
+    }
     exit(1);
   }