'*' allows any feature.
Signed-off-by: Kefu Chai <kchai@redhat.com>
std::ostream *message)
{
ceph_spin_lock(&_feature_lock);
- bool enabled = _experimental_features.count(feat);
+ bool enabled = (_experimental_features.count(feat) ||
+ _experimental_features.count("*"));
ceph_spin_unlock(&_feature_lock);
if (enabled) {
ASSERT_FALSE(cct->check_experimental_feature_enabled("bar"));
ASSERT_TRUE(cct->check_experimental_feature_enabled("baz"));
+ cct->_conf->set_val("enable_experimental_unrecoverable_data_corrupting_features",
+ "*");
+ cct->_conf->apply_changes(&cout);
+ ASSERT_TRUE(cct->check_experimental_feature_enabled("foo"));
+ ASSERT_TRUE(cct->check_experimental_feature_enabled("bar"));
+ ASSERT_TRUE(cct->check_experimental_feature_enabled("baz"));
+
cct->_log->flush();
}