]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_admin.cc: do not compare int with boolean
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Oct 2017 19:42:23 +0000 (21:42 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 13 Nov 2019 14:15:50 +0000 (15:15 +0100)
Fix for:

[src/rgw/rgw_admin.cc:5862]: (warning) Comparison of a boolean
 expression with an integer.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit d5419143ac5ab0ad8d9e31bd251978b4d9355e46)

src/rgw/rgw_admin.cc

index 8cecc1cad9b0f8e91655f2b2dd73b7124c685a8b..9a8dfae601f8782046eddb34dccdb972910d84cd 100644 (file)
@@ -6199,7 +6199,7 @@ next:
   }
 
   if (opt_cmd == OPT_BUCKET_RM) {
-    if (inconsistent_index == false) {
+    if (!inconsistent_index) {
       RGWBucketAdminOp::remove_bucket(store, bucket_op, bypass_gc, true);
     } else {
       if (!yes_i_really_mean_it) {