From a6eaa837c86089708c083ecb742e018361f9ee61 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 28 Mar 2016 11:53:26 -0400 Subject: [PATCH] librbd: accessor for journal tag data Signed-off-by: Jason Dillaman --- src/librbd/Journal.cc | 5 +++++ src/librbd/Journal.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/librbd/Journal.cc b/src/librbd/Journal.cc index 6b587fc85b18b..df30cb349e69d 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 038eb49772463..424ef0e4b3201 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); -- 2.39.5