From: Jason Dillaman Date: Mon, 28 Mar 2016 15:53:26 +0000 (-0400) Subject: librbd: accessor for journal tag data X-Git-Tag: v10.1.1~64^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a6eaa837c86089708c083ecb742e018361f9ee61;p=ceph.git librbd: accessor for journal tag data Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/Journal.cc b/src/librbd/Journal.cc index 6b587fc85b18..df30cb349e69 100644 --- a/src/librbd/Journal.cc +++ b/src/librbd/Journal.cc @@ -655,6 +655,11 @@ bool Journal::is_tag_owner() const { return (m_tag_data.mirror_uuid == LOCAL_MIRROR_UUID); } +template +journal::TagData Journal::get_tag_data() const { + return m_tag_data; +} + template int Journal::demote() { CephContext *cct = m_image_ctx.cct; diff --git a/src/librbd/Journal.h b/src/librbd/Journal.h index 038eb4977246..424ef0e4b320 100644 --- a/src/librbd/Journal.h +++ b/src/librbd/Journal.h @@ -114,6 +114,7 @@ public: void close(Context *on_finish); bool is_tag_owner() const; + journal::TagData get_tag_data() const; int demote(); void allocate_local_tag(Context *on_finish);