]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mark rocksdb experimental
authorSage Weil <sage@redhat.com>
Mon, 30 Mar 2015 16:33:00 +0000 (09:33 -0700)
committerSage Weil <sage@redhat.com>
Mon, 30 Mar 2015 17:00:01 +0000 (10:00 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/KeyValueDB.cc

index f7f1e30bae6b1237402a72999935a23f87547add..7a8948901b88adca8e4cdf859a207f08ddcfde60 100644 (file)
@@ -22,7 +22,8 @@ KeyValueDB *KeyValueDB::create(CephContext *cct, const string& type,
   }
 #endif
 #ifdef HAVE_LIBROCKSDB
-  if (type == "rocksdb") {
+  if (type == "rocksdb" &&
+      cct->check_experimental_feature_enabled("rocksdb")) {
     return new RocksDBStore(cct, dir);
   }
 #endif
@@ -40,7 +41,8 @@ int KeyValueDB::test_init(const string& type, const string& dir)
   }
 #endif
 #ifdef HAVE_LIBROCKSDB
-  if (type == "rocksdb"){
+  if (type == "rocksdb" &&
+      cct->check_experimental_feature_enabled("rocksdb")){
     return RocksDBStore::_test_init(dir);
   }
 #endif