]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd_mirror/ImageSyncThrottler.h
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / tools / rbd_mirror / ImageSyncThrottler.h
index 8c8f754626a3f28b9fbd23a7e76df92f2a15a6bf..c0cda61e9a6196d20459568f09e63e2759b63a6e 100644 (file)
@@ -5,6 +5,7 @@
 #define RBD_MIRROR_IMAGE_SYNC_THROTTLER_H
 
 #include <list>
+#include <map>
 #include <set>
 #include <sstream>
 #include <string>
@@ -47,7 +48,8 @@ private:
   CephContext *m_cct;
   Mutex m_lock;
   uint32_t m_max_concurrent_syncs;
-  std::list<std::pair<std::string, Context *>> m_queue;
+  std::list<std::string> m_queue;
+  std::map<std::string, Context *> m_queued_ops;
   std::set<std::string> m_inflight_ops;
 
   const char **get_tracked_conf_keys() const override;