From: Igor Fedotov Date: Wed, 26 Feb 2020 16:17:17 +0000 (+0300) Subject: common/config: fix lack of normalize_key_name() apply. X-Git-Tag: v15.1.1~205^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8cbd2ac195e55b291c642534665663bde6101f73;p=ceph.git common/config: fix lack of normalize_key_name() apply. This is a fix to regression caused by: 224cafc56d2ffe16effb6ba3d230eb586ae8d595 In fact md_config_t::_get_val was lacking of proper normalize_key_name() call. Signed-off-by: Igor Fedotov --- diff --git a/src/common/config.cc b/src/common/config.cc index d073192bc46b..eb6b721e12e3 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -1047,7 +1047,7 @@ Option::value_t md_config_t::_get_val( // In key names, leading and trailing whitespace are not significant. string k(ConfFile::normalize_key_name(key)); - const Option *o = find_option(key); + const Option *o = find_option(k); if (!o) { // not a valid config option return Option::value_t(boost::blank());