X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Flibrbd%2Fmanaged_lock%2FReleaseRequest.h;fp=src%2Fceph%2Fsrc%2Flibrbd%2Fmanaged_lock%2FReleaseRequest.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=89205136ecf11a72c3c6c60065a9700f6c8070c2;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/librbd/managed_lock/ReleaseRequest.h b/src/ceph/src/librbd/managed_lock/ReleaseRequest.h deleted file mode 100644 index 8920513..0000000 --- a/src/ceph/src/librbd/managed_lock/ReleaseRequest.h +++ /dev/null @@ -1,71 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_LIBRBD_MANAGED_LOCK_RELEASE_REQUEST_H -#define CEPH_LIBRBD_MANAGED_LOCK_RELEASE_REQUEST_H - -#include "include/rados/librados.hpp" -#include "librbd/watcher/Types.h" -#include - -class Context; -class ContextWQ; - -namespace librbd { - -class Watcher; - -namespace managed_lock { - -template -class ReleaseRequest { -private: - typedef watcher::Traits TypeTraits; - typedef typename TypeTraits::Watcher Watcher; - -public: - static ReleaseRequest* create(librados::IoCtx& ioctx, Watcher *watcher, - ContextWQ *work_queue, - const std::string& oid, - const std::string& cookie, - Context *on_finish); - - ~ReleaseRequest(); - void send(); - -private: - /** - * @verbatim - * - * - * | - * v - * UNLOCK - * | - * v - * - * - * @endverbatim - */ - - ReleaseRequest(librados::IoCtx& ioctx, Watcher *watcher, - ContextWQ *work_queue, const std::string& oid, - const std::string& cookie, Context *on_finish); - - librados::IoCtx& m_ioctx; - Watcher *m_watcher; - std::string m_oid; - std::string m_cookie; - Context *m_on_finish; - - void send_unlock(); - void handle_unlock(int r); - - void finish(); - -}; - -} // namespace managed_lock -} // namespace librbd - -#endif // CEPH_LIBRBD_MANAGED_LOCK_RELEASE_REQUEST_H