From: Chang Liu Date: Fri, 20 Sep 2019 12:51:09 +0000 (+0000) Subject: rgw: kill compile warnning in rgw_object_lock.h X-Git-Tag: v14.2.5~119^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=22b3daac54e31b72457ec0cf8e43e6862cc8a65e;p=ceph.git rgw: kill compile warnning in rgw_object_lock.h Signed-off-by: Chang Liu (cherry picked from commit eb5ee0a33110dcdab6db72df48956b47c1e2ebac) --- diff --git a/src/rgw/rgw_object_lock.h b/src/rgw/rgw_object_lock.h index ccd48b9066748..63990d62f0cf1 100644 --- a/src/rgw/rgw_object_lock.h +++ b/src/rgw/rgw_object_lock.h @@ -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 {