]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd_mirror/MirrorStatusWatcher.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / tools / rbd_mirror / MirrorStatusWatcher.h
index 155f8cc8d05ad16f27d902cb23567e411af416b5..3335e9e63ad6aa2acb059fd137c8c129e2e5a7f8 100644 (file)
@@ -6,7 +6,10 @@
 
 #include "librbd/Watcher.h"
 
-namespace librbd { class ImageCtx; }
+namespace librbd {
+class ImageCtx;
+namespace asio { struct ContextWQ; }
+} // namespace librbd
 
 namespace rbd {
 namespace mirror {
@@ -15,14 +18,15 @@ template <typename ImageCtxT = librbd::ImageCtx>
 class MirrorStatusWatcher : protected librbd::Watcher {
 public:
   static MirrorStatusWatcher *create(librados::IoCtx &io_ctx,
-                                     ContextWQ *work_queue) {
+                                     librbd::asio::ContextWQ *work_queue) {
     return new MirrorStatusWatcher(io_ctx, work_queue);
   }
   void destroy() {
     delete this;
   }
 
-  MirrorStatusWatcher(librados::IoCtx &io_ctx, ContextWQ *work_queue);
+  MirrorStatusWatcher(librados::IoCtx &io_ctx,
+                      librbd::asio::ContextWQ *work_queue);
   ~MirrorStatusWatcher() override;
 
   void init(Context *on_finish);