X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftools%2Frbd_mirror%2FMirrorStatusWatcher.h;fp=src%2Fceph%2Fsrc%2Ftools%2Frbd_mirror%2FMirrorStatusWatcher.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=155f8cc8d05ad16f27d902cb23567e411af416b5;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/tools/rbd_mirror/MirrorStatusWatcher.h b/src/ceph/src/tools/rbd_mirror/MirrorStatusWatcher.h deleted file mode 100644 index 155f8cc..0000000 --- a/src/ceph/src/tools/rbd_mirror/MirrorStatusWatcher.h +++ /dev/null @@ -1,39 +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_MIRROR_STATUS_WATCHER_H -#define CEPH_RBD_MIRROR_MIRROR_STATUS_WATCHER_H - -#include "librbd/Watcher.h" - -namespace librbd { class ImageCtx; } - -namespace rbd { -namespace mirror { - -template -class MirrorStatusWatcher : protected librbd::Watcher { -public: - static MirrorStatusWatcher *create(librados::IoCtx &io_ctx, - ContextWQ *work_queue) { - return new MirrorStatusWatcher(io_ctx, work_queue); - } - void destroy() { - delete this; - } - - MirrorStatusWatcher(librados::IoCtx &io_ctx, ContextWQ *work_queue); - ~MirrorStatusWatcher() override; - - void init(Context *on_finish); - void shut_down(Context *on_finish); - -protected: - void handle_notify(uint64_t notify_id, uint64_t handle, - uint64_t notifier_id, bufferlist &bl) override; -}; - -} // namespace mirror -} // namespace rbd - -#endif // CEPH_RBD_MIRROR_MIRROR_STATUS_WATCHER_H