]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: accessor for journal tag data
authorJason Dillaman <dillaman@redhat.com>
Mon, 28 Mar 2016 15:53:26 +0000 (11:53 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 29 Mar 2016 19:19:26 +0000 (15:19 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/Journal.cc
src/librbd/Journal.h

index 6b587fc85b18bf771d6b9449d40bec16fad0d1e9..df30cb349e69d2dc4eb329eda2f68f26bb809a4a 100644 (file)
@@ -655,6 +655,11 @@ bool Journal<I>::is_tag_owner() const {
   return (m_tag_data.mirror_uuid == LOCAL_MIRROR_UUID);
 }
 
+template <typename I>
+journal::TagData Journal<I>::get_tag_data() const {
+  return m_tag_data;
+}
+
 template <typename I>
 int Journal<I>::demote() {
   CephContext *cct = m_image_ctx.cct;
index 038eb49772463ad92d7130c8792020fbc3864c20..424ef0e4b3201450fe534ebd5fc5dce0ccd05d30 100644 (file)
@@ -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);