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: v15.1.0~1483^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F30489%2Fhead;p=ceph.git rgw: kill compile warnning in rgw_object_lock.h Signed-off-by: Chang Liu --- diff --git a/src/rgw/rgw_object_lock.h b/src/rgw/rgw_object_lock.h index e84dd8d4d22e..cabb1c766d0f 100644 --- a/src/rgw/rgw_object_lock.h +++ b/src/rgw/rgw_object_lock.h @@ -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 {