]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: fix Option::is_safe
authorJohn Spray <john.spray@redhat.com>
Thu, 13 Jul 2017 09:19:18 +0000 (05:19 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 21 Jul 2017 10:27:29 +0000 (06:27 -0400)
Signed-off-by: John Spray <john.spray@redhat.com>
src/common/options.h

index 2dd0cb7e867c52f19e0482afd45beea3aa989586..0db3057d5ebf1955cc58cd2984ecc448fc8f248a 100644 (file)
@@ -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;
   }
 };