]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth/Auth: pass utime_t by const reference
authorKefu Chai <kchai@redhat.com>
Fri, 26 Apr 2019 02:03:12 +0000 (10:03 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 16:12:57 +0000 (00:12 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/auth/Auth.h

index 7d6c2d4bc1784c5af52a1dc0de10a99e1bf6aab0..621132aa94bb65832e563a355b4f0906164e9b02 100644 (file)
@@ -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;
   }