]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/cephfs_mirror/InstanceWatcher.h
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / tools / cephfs_mirror / InstanceWatcher.h
index dfe0cd05990e553dbc7122b93849d28af47efc5d..a0740009605e4ae62c9f67cd3bd7c213808b31fc 100644 (file)
@@ -49,11 +49,21 @@ public:
     return m_blocklisted;
   }
 
+  utime_t get_blocklisted_ts() {
+    std::scoped_lock locker(m_lock);
+    return m_blocklisted_ts;
+  }
+
   bool is_failed() {
     std::scoped_lock locker(m_lock);
     return m_failed;
   }
 
+  utime_t get_failed_ts() {
+    std::scoped_lock locker(m_lock);
+    return m_failed_ts;
+  }
+
 private:
   librados::IoCtx &m_ioctx;
   Listener &m_listener;
@@ -66,6 +76,9 @@ private:
   bool m_blocklisted = false;
   bool m_failed = false;
 
+  utime_t m_blocklisted_ts;
+  utime_t m_failed_ts;
+
   void create_instance();
   void handle_create_instance(int r);