From: Kefu Chai Date: Fri, 26 Apr 2019 02:03:12 +0000 (+0800) Subject: auth/Auth: pass utime_t by const reference X-Git-Tag: v15.1.0~2803^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1070a1f7889246b4877455dd0aebf7727cf0c14b;p=ceph.git auth/Auth: pass utime_t by const reference Signed-off-by: Kefu Chai --- diff --git a/src/auth/Auth.h b/src/auth/Auth.h index 7d6c2d4bc178..621132aa94bb 100644 --- a/src/auth/Auth.h +++ b/src/auth/Auth.h @@ -257,7 +257,7 @@ struct RotatingSecrets { bool need_new_secrets() const { return secrets.size() < KEY_ROTATE_NUM; } - bool need_new_secrets(utime_t now) const { + bool need_new_secrets(const utime_t& now) const { return secrets.size() < KEY_ROTATE_NUM || current().expiration <= now; }