]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/auth/RotatingKeyRing.cc
update sources to v12.1.1
[ceph.git] / ceph / src / auth / RotatingKeyRing.cc
index ad0c0918de2b4bbc3cdd90eba9fb82fc02e5ecc0..e48127aa64b85b059e5210c7720e45764e95a1af 100644 (file)
@@ -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();
 }