From 002b7fdadf3b05679d420d1b567d251dec4eabc6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 30 Mar 2015 09:33:00 -0700 Subject: [PATCH] mark rocksdb experimental Signed-off-by: Sage Weil --- src/os/KeyValueDB.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3