/* If this token was an allowed expired token because we got a
* service token we need to update the expiration before we cache it. */
if (allow_expired) {
- uint64_t new_expires = ceph_clock_now().sec() + g_conf()->rgw_keystone_expired_token_cache_expiration;
+ uint64_t now = ceph_clock_now().sec();
+ uint64_t new_expires = now + g_conf()->rgw_keystone_expired_token_cache_expiration;
ldpp_dout(dpp, 20) << "updating expiration of allowed expired token"
- << " from " << t->get_expires() << " to "
+ << " from old " << t->get_expires() << " to now " << now << " + "
+ << g_conf()->rgw_keystone_expired_token_cache_expiration
+ << " secs = "
<< new_expires << dendl;
t->set_expires(new_expires);
}