X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftools%2Frbd_mirror%2Fpool_watcher%2FRefreshImagesRequest.h;fp=src%2Fceph%2Fsrc%2Ftools%2Frbd_mirror%2Fpool_watcher%2FRefreshImagesRequest.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=35ed6b3301480bd227ed335812ed3e09bd4463f5;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/tools/rbd_mirror/pool_watcher/RefreshImagesRequest.h b/src/ceph/src/tools/rbd_mirror/pool_watcher/RefreshImagesRequest.h deleted file mode 100644 index 35ed6b3..0000000 --- a/src/ceph/src/tools/rbd_mirror/pool_watcher/RefreshImagesRequest.h +++ /dev/null @@ -1,73 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_RBD_MIRROR_POOL_WATCHER_REFRESH_IMAGES_REQUEST_H -#define CEPH_RBD_MIRROR_POOL_WATCHER_REFRESH_IMAGES_REQUEST_H - -#include "include/buffer.h" -#include "include/rados/librados.hpp" -#include "tools/rbd_mirror/types.h" -#include - -struct Context; - -namespace librbd { struct ImageCtx; } - -namespace rbd { -namespace mirror { -namespace pool_watcher { - -template -class RefreshImagesRequest { -public: - static RefreshImagesRequest *create(librados::IoCtx &remote_io_ctx, - ImageIds *image_ids, Context *on_finish) { - return new RefreshImagesRequest(remote_io_ctx, image_ids, on_finish); - } - - RefreshImagesRequest(librados::IoCtx &remote_io_ctx, ImageIds *image_ids, - Context *on_finish) - : m_remote_io_ctx(remote_io_ctx), m_image_ids(image_ids), - m_on_finish(on_finish) { - } - - void send(); - -private: - /** - * @verbatim - * - * - * | - * | /-------------\ - * | | | - * v v | (more images) - * MIRROR_IMAGE_LIST ---/ - * | - * v - * - * - * @endverbatim - */ - - librados::IoCtx &m_remote_io_ctx; - ImageIds *m_image_ids; - Context *m_on_finish; - - bufferlist m_out_bl; - std::string m_start_after; - - void mirror_image_list(); - void handle_mirror_image_list(int r); - - void finish(int r); - -}; - -} // namespace pool_watcher -} // namespace mirror -} // namespace rbd - -extern template class rbd::mirror::pool_watcher::RefreshImagesRequest; - -#endif // CEPH_RBD_MIRROR_POOL_WATCHER_REFRESH_IMAGES_REQUEST_H