X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Flibrbd%2Fjournal%2FStandardPolicy.cc;fp=src%2Fceph%2Fsrc%2Flibrbd%2Fjournal%2FStandardPolicy.cc;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=7e5e329d7000860ae532c9c2e68fa2562f29d87c;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/librbd/journal/StandardPolicy.cc b/src/ceph/src/librbd/journal/StandardPolicy.cc deleted file mode 100644 index 7e5e329..0000000 --- a/src/ceph/src/librbd/journal/StandardPolicy.cc +++ /dev/null @@ -1,32 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#include "librbd/journal/StandardPolicy.h" -#include "common/WorkQueue.h" -#include "librbd/ImageCtx.h" -#include "librbd/Journal.h" - -#define dout_subsys ceph_subsys_rbd -#undef dout_prefix -#define dout_prefix *_dout << "librbd::journal::StandardPolicy: " - -namespace librbd { -namespace journal { - -template -void StandardPolicy::allocate_tag_on_lock(Context *on_finish) { - assert(m_image_ctx->journal != nullptr); - - if (!m_image_ctx->journal->is_tag_owner()) { - lderr(m_image_ctx->cct) << "local image not promoted" << dendl; - m_image_ctx->op_work_queue->queue(on_finish, -EPERM); - return; - } - - m_image_ctx->journal->allocate_local_tag(on_finish); -} - -} // namespace journal -} // namespace librbd - -template class librbd::journal::StandardPolicy;