From: John Spray Date: Thu, 13 Jul 2017 09:19:18 +0000 (-0400) Subject: common: fix Option::is_safe X-Git-Tag: v12.1.2~192^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be2136cd3421cd8aa92fff02af8283479195c34a;p=ceph.git common: fix Option::is_safe Signed-off-by: John Spray --- diff --git a/src/common/options.h b/src/common/options.h index 2dd0cb7e867c..0db3057d5ebf 100644 --- a/src/common/options.h +++ b/src/common/options.h @@ -251,7 +251,8 @@ struct Option { */ bool is_safe() const { - return type == TYPE_INT || type == TYPE_FLOAT; + return safe || type == TYPE_BOOL || type == TYPE_INT + || type == TYPE_UINT || type == TYPE_FLOAT; } };