]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: debug: log journal metadata
authorMykola Golub <mgolub@mirantis.com>
Thu, 3 Sep 2015 18:12:12 +0000 (21:12 +0300)
committerMykola Golub <mgolub@mirantis.com>
Fri, 4 Dec 2015 11:15:02 +0000 (13:15 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/Journal.cc

index 041568f8d6156a6e312d5193f5839880f5c19bf2..2fb745ce9600887db7d9a872ed11b4195f99c222 100644 (file)
@@ -402,6 +402,7 @@ void Journal::create_journaler() {
 
   assert(m_lock.is_locked());
   assert(m_state == STATE_UNINITIALIZED);
+  assert(m_journaler == NULL);
 
   // TODO allow alternate pool for journal objects and commit flush interval
   m_close_pending = false;
@@ -461,6 +462,8 @@ void Journal::handle_initialized(int r) {
     return;
   }
 
+  ldout(cct, 20) << __func__ << ": Journaler" << *m_journaler << dendl;
+
   m_journal_replay = new JournalReplay(m_image_ctx);
 
   transition_state(STATE_REPLAYING);