From: Sage Weil Date: Mon, 30 Mar 2015 16:33:00 +0000 (-0700) Subject: mark rocksdb experimental X-Git-Tag: v9.0.0~69^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=002b7fdadf3b05679d420d1b567d251dec4eabc6;p=ceph.git mark rocksdb experimental Signed-off-by: Sage Weil --- diff --git a/src/os/KeyValueDB.cc b/src/os/KeyValueDB.cc index f7f1e30bae6b..7a8948901b88 100644 --- a/src/os/KeyValueDB.cc +++ b/src/os/KeyValueDB.cc @@ -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