]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd_mirror/PoolWatcher.h
update sources to v12.1.2
[ceph.git] / ceph / src / tools / rbd_mirror / PoolWatcher.h
index aec063b3e7c3cbc3c1fdeebd5d5305ff13d1169d..51ee00e9add84934057116c29b3f1f7eeca5ad83 100644 (file)
@@ -52,6 +52,11 @@ public:
   void init(Context *on_finish = nullptr);
   void shut_down(Context *on_finish);
 
+  inline size_t get_image_count() const {
+    Mutex::Locker locker(m_lock);
+    return m_image_ids.size();
+  }
+
 private:
   /**
    * @verbatim