X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fauth%2FRotatingKeyRing.cc;h=e48127aa64b85b059e5210c7720e45764e95a1af;hb=224ce89bce8186937e77bdbda572a650953f8c23;hp=ad0c0918de2b4bbc3cdd90eba9fb82fc02e5ecc0;hpb=06dae762bfef1ba116dc58483c7b68b733d853e0;p=ceph.git diff --git a/ceph/src/auth/RotatingKeyRing.cc b/ceph/src/auth/RotatingKeyRing.cc index ad0c0918d..e48127aa6 100644 --- a/ceph/src/auth/RotatingKeyRing.cc +++ b/ceph/src/auth/RotatingKeyRing.cc @@ -21,10 +21,10 @@ bool RotatingKeyRing::need_new_secrets(utime_t now) const return secrets.need_new_secrets(now); } -void RotatingKeyRing::set_secrets(RotatingSecrets& s) +void RotatingKeyRing::set_secrets(RotatingSecrets&& s) { Mutex::Locker l(lock); - secrets = s; + secrets = std::move(s); dump_rotating(); }