]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/auth/RotatingKeyRing.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / auth / RotatingKeyRing.h
index 729f5c52021277cb34d3a676fa50d35e2a5c888a..04277a8be8502069900a02cb4822890c6e4c978c 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef CEPH_ROTATINGKEYRING_H
 #define CEPH_ROTATINGKEYRING_H
 
-#include "common/Mutex.h"
+#include "common/ceph_mutex.h"
 #include "auth/Auth.h"
 
 /*
@@ -30,14 +30,15 @@ class RotatingKeyRing : public KeyStore {
   uint32_t service_id;
   RotatingSecrets secrets;
   KeyRing *keyring;
-  mutable Mutex lock;
+  mutable ceph::mutex lock;
 
 public:
   RotatingKeyRing(CephContext *cct_, uint32_t s, KeyRing *kr) :
     cct(cct_),
     service_id(s),
     keyring(kr),
-    lock("RotatingKeyRing::lock") {}
+    lock{ceph::make_mutex("RotatingKeyRing::lock")}
+  {}
 
   bool need_new_secrets() const;
   bool need_new_secrets(utime_t now) const;