From: Yehuda Sadeh Date: Fri, 20 Sep 2013 21:04:47 +0000 (-0700) Subject: rgw: fix keystone token expiration test X-Git-Tag: v0.67.4~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5cd66d3b4bca92b402c95ab256fbc3f0329c446f;p=ceph.git rgw: fix keystone token expiration test Fixes: #6360 The test was inverted, need expiration to be greater than current time in order for token to be valid. Signed-off-by: Yehuda Sadeh Reviewed-by: Sage Weil --- diff --git a/src/rgw/rgw_swift.h b/src/rgw/rgw_swift.h index febc2675c27d..cb00c40638aa 100644 --- a/src/rgw/rgw_swift.h +++ b/src/rgw/rgw_swift.h @@ -32,7 +32,7 @@ public: bool expired() { uint64_t now = ceph_clock_now(NULL).sec(); - return (now < (uint64_t)expiration); + return (now >= (uint64_t)expiration); } };