]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: journal-related debug messages
authorJohn Spray <jspray@redhat.com>
Mon, 9 Jun 2014 11:37:03 +0000 (12:37 +0100)
committerJohn Spray <jspray@redhat.com>
Mon, 30 Jun 2014 09:38:57 +0000 (10:38 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/JournalPointer.cc
src/osdc/Journaler.cc

index 6eb82575f2be3ee25362bc7a89003d358dbc6443..8c8c54c08de92f1f3c7a35b33f3e591ad2396a6a 100644 (file)
@@ -24,7 +24,7 @@
 
 #define dout_subsys ceph_subsys_journaler
 #undef dout_prefix
-#define dout_prefix *_dout << objecter->messenger->get_myname() << ".journalpointer"
+#define dout_prefix *_dout << objecter->messenger->get_myname() << ".journalpointer "
 
 
 std::string JournalPointer::get_object_id() const
index 5578f742bff951157c9702caf9615652dee8d360..941fe41b217d7d44260769c3f487c02d4f1eccf5 100644 (file)
@@ -40,7 +40,6 @@ void Journaler::set_writeable()
 void Journaler::create(ceph_file_layout *l, stream_format_t const sf)
 {
   assert(!readonly);
-  ldout(cct, 1) << "create blank journal" << dendl;
   state = STATE_ACTIVE;
 
   stream_format = sf;
@@ -50,6 +49,9 @@ void Journaler::create(ceph_file_layout *l, stream_format_t const sf)
   prezeroing_pos = prezero_pos = write_pos = flush_pos = safe_pos =
     read_pos = requested_pos = received_pos =
     expire_pos = trimming_pos = trimmed_pos = layout.fl_stripe_count * layout.fl_object_size;
+
+  ldout(cct, 1) << "created blank journal at inode 0x" << std::hex << ino << std::dec
+    << ", format=" << stream_format << dendl;
 }
 
 void Journaler::set_layout(ceph_file_layout *l)
@@ -76,6 +78,7 @@ ostream& operator<<(ostream& out, Journaler::Header &h)
   return out << "loghead(trim " << h.trimmed_pos
             << ", expire " << h.expire_pos
             << ", write " << h.write_pos
+            << ", stream_format " << (int)(h.stream_format)
             << ")";
 }