projects
/
ceph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dbb9a1
)
auth/Auth: pass utime_t by const reference
author
Kefu Chai
<kchai@redhat.com>
Fri, 26 Apr 2019 02:03:12 +0000
(10:03 +0800)
committer
Kefu 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
patch
|
blob
|
history
diff --git
a/src/auth/Auth.h
b/src/auth/Auth.h
index 7d6c2d4bc1784c5af52a1dc0de10a99e1bf6aab0..621132aa94bb65832e563a355b4f0906164e9b02 100644
(file)
--- 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;
}