]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: log which experimental features are enabled. 3275/head
authorSage Weil <sage@redhat.com>
Mon, 29 Dec 2014 20:11:18 +0000 (12:11 -0800)
committerSage Weil <sage@redhat.com>
Mon, 29 Dec 2014 22:19:14 +0000 (14:19 -0800)
This will appear in the logs regardless of whether or not the features
get used/enabled via other config options.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/ceph_context.cc

index 1c939b45d0a7fc31768a873740778fdeebe64343..6775fd03af0684a9693e6f9de32b7e757b7be2c3 100644 (file)
@@ -176,6 +176,9 @@ public:
     get_str_set(conf->enable_experimental_unrecoverable_data_corrupting_features,
                cct->_experimental_features);
     ceph_spin_unlock(&cct->_feature_lock);
+    if (!cct->_experimental_features.empty())
+      lderr(cct) << "WARNING: the following dangerous and experimental features are enabled: "
+                << cct->_experimental_features << dendl;
   }
 };