X-Git-Url: https://git.proxmox.com/?p=ceph.git;a=blobdiff_plain;f=ceph%2Fsrc%2Ftools%2Frbd_mirror%2Fimage_replayer%2FPrepareLocalImageRequest.h;h=33ba24f4e7bfc92815d89ccf1ac0a828132617b5;hp=913bfd1c242c23207b4b873b826086e9f37a694e;hb=28e407b858acd3bddc89f68583571f771bb42e46;hpb=dfcb7b53b2e4fcd2a5af0240d4975adc711ab96e diff --git a/ceph/src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.h b/ceph/src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.h index 913bfd1c2..33ba24f4e 100644 --- a/ceph/src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.h +++ b/ceph/src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.h @@ -23,22 +23,25 @@ public: static PrepareLocalImageRequest *create(librados::IoCtx &io_ctx, const std::string &global_image_id, std::string *local_image_id, + std::string *local_image_name, std::string *tag_owner, ContextWQ *work_queue, Context *on_finish) { return new PrepareLocalImageRequest(io_ctx, global_image_id, local_image_id, - tag_owner, work_queue, on_finish); + local_image_name, tag_owner, work_queue, + on_finish); } PrepareLocalImageRequest(librados::IoCtx &io_ctx, const std::string &global_image_id, std::string *local_image_id, + std::string *local_image_name, std::string *tag_owner, ContextWQ *work_queue, Context *on_finish) : m_io_ctx(io_ctx), m_global_image_id(global_image_id), - m_local_image_id(local_image_id), m_tag_owner(tag_owner), - m_work_queue(work_queue), m_on_finish(on_finish) { + m_local_image_id(local_image_id), m_local_image_name(local_image_name), + m_tag_owner(tag_owner), m_work_queue(work_queue), m_on_finish(on_finish) { } void send(); @@ -53,6 +56,9 @@ private: * GET_LOCAL_IMAGE_ID * | * v + * GET_LOCAL_IMAGE_NAME + * | + * v * GET_MIRROR_STATE * | * v @@ -64,6 +70,7 @@ private: librados::IoCtx &m_io_ctx; std::string m_global_image_id; std::string *m_local_image_id; + std::string *m_local_image_name; std::string *m_tag_owner; ContextWQ *m_work_queue; Context *m_on_finish; @@ -73,6 +80,9 @@ private: void get_local_image_id(); void handle_get_local_image_id(int r); + void get_local_image_name(); + void handle_get_local_image_name(int r); + void get_mirror_state(); void handle_get_mirror_state(int r);