]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: kill compile warnning in rgw_object_lock.h 30489/head
authorChang Liu <liuchang0812@gmail.com>
Fri, 20 Sep 2019 12:51:09 +0000 (12:51 +0000)
committerChang Liu <liuchang0812@gmail.com>
Fri, 20 Sep 2019 12:51:09 +0000 (12:51 +0000)
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/rgw/rgw_object_lock.h

index e84dd8d4d22e0e5def514b88c8a0724d477a7093..cabb1c766d0f51db6d6516b7d45e46b9cda7d00c 100644 (file)
@@ -112,7 +112,7 @@ public:
     // DefaultRetention requires either Days or Years.
     // You can't specify both at the same time.
     // see https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTObjectLockConfiguration.html
-    return get_years() > 0 != get_days() > 0;
+    return (get_years() > 0) != (get_days() > 0);
   }
 
   bool has_rule() const {