]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: kill compile warnning in rgw_object_lock.h 29905/head
authorChang Liu <liuchang0812@gmail.com>
Fri, 20 Sep 2019 12:51:09 +0000 (12:51 +0000)
committerPaul Emmerich <paul.emmerich@croit.io>
Thu, 3 Oct 2019 09:48:10 +0000 (11:48 +0200)
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
(cherry picked from commit eb5ee0a33110dcdab6db72df48956b47c1e2ebac)

src/rgw/rgw_object_lock.h

index ccd48b90667482f83859c9e55d3069b872ce1f10..63990d62f0cf1e4fe1898e1f75be2c3f21db007f 100644 (file)
@@ -109,7 +109,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 {