]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/mirror/EnableRequest.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / librbd / mirror / EnableRequest.h
index e2145374a2cbf225a2d4dac3285e31d49dacac9d..965c2a36b8cc5919612580389288ab9c20afb638 100644 (file)
@@ -4,7 +4,8 @@
 #ifndef CEPH_LIBRBD_MIRROR_ENABLE_REQUEST_H
 #define CEPH_LIBRBD_MIRROR_ENABLE_REQUEST_H
 
-#include "include/buffer.h"
+#include "include/buffer_fwd.h"
+#include "include/rados/librados_fwd.hpp"
 #include "cls/rbd/cls_rbd_types.h"
 #include <map>
 #include <string>
@@ -12,8 +13,6 @@
 class Context;
 class ContextWQ;
 
-namespace librados { class IoCtx; }
-
 namespace librbd {
 
 class ImageCtx;
@@ -44,15 +43,12 @@ private:
    * <start>
    *    |
    *    v
-   * GET_MIRROR_MODE  * * * * * * *
-   *    |                         *
+   * GET_MIRROR_IMAGE * * * * * * *
+   *    |                         * (on error)
    *    v                         *
    * GET_TAG_OWNER  * * * * * * * *
    *    |                         *
    *    v                         *
-   * GET_MIRROR_IMAGE * * * * * * *
-   *    |                         * (on error)
-   *    v                         *
    * SET_MIRROR_IMAGE * * * * * * *
    *    |                         *
    *    v                         *
@@ -79,12 +75,12 @@ private:
   bufferlist m_out_bl;
   cls::rbd::MirrorImage m_mirror_image;
 
-  void send_get_tag_owner();
-  Context *handle_get_tag_owner(int *result);
-
   void send_get_mirror_image();
   Context *handle_get_mirror_image(int *result);
 
+  void send_get_tag_owner();
+  Context *handle_get_tag_owner(int *result);
+
   void send_set_mirror_image();
   Context *handle_set_mirror_image(int *result);