]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: have 'tid' dumped as a json unsigned int where appropriate
authorJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 19 Jun 2014 15:52:06 +0000 (16:52 +0100)
committerSage Weil <sage@redhat.com>
Tue, 12 Aug 2014 22:17:56 +0000 (15:17 -0700)
Most of the places dumping it would dump it as a string. Others as an int.
Just a couple would dump it as an unsigned int.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 3f0ea9512be78d10ac0bc605a38e83cfbab7ffee)

src/osd/ECBackend.cc
src/osd/ECMsgTypes.cc
src/osd/OpRequest.cc

index 3eca96543b795065e271c18c254b212555824dbc..315c9154fb0b7cc01bbc24c7238ef2d80b96288b 100644 (file)
@@ -105,7 +105,7 @@ ostream &operator<<(ostream &lhs, const ECBackend::ReadOp &rhs)
 
 void ECBackend::ReadOp::dump(Formatter *f) const
 {
-  f->dump_stream("tid") << tid;
+  f->dump_unsigned("tid", tid);
   if (op && op->get_req()) {
     f->dump_stream("op") << *(op->get_req());
   }
index 47ef3533f33740c1e23ee42fe0f96e627f4206da..ba02d835919327219ba9d64d342cfe575edee478 100644 (file)
@@ -73,7 +73,7 @@ std::ostream &operator<<(
 
 void ECSubWrite::dump(Formatter *f) const
 {
-  f->dump_stream("tid") << tid;
+  f->dump_unsigned("tid", tid);
   f->dump_stream("reqid") << reqid;
   f->dump_stream("at_version") << at_version;
   f->dump_stream("trim_to") << trim_to;
@@ -135,7 +135,7 @@ std::ostream &operator<<(
 
 void ECSubWriteReply::dump(Formatter *f) const
 {
-  f->dump_stream("tid") << tid;
+  f->dump_unsigned("tid", tid);
   f->dump_stream("last_complete") << last_complete;
   f->dump_stream("committed") << committed;
   f->dump_stream("applied") << applied;
@@ -185,7 +185,7 @@ std::ostream &operator<<(
 void ECSubRead::dump(Formatter *f) const
 {
   f->dump_stream("from") << from;
-  f->dump_stream("tid") << tid;
+  f->dump_unsigned("tid", tid);
   f->open_array_section("objects");
   for (map<hobject_t, list<pair<uint64_t, uint64_t> > >::const_iterator i =
         to_read.begin();
@@ -273,7 +273,7 @@ std::ostream &operator<<(
 void ECSubReadReply::dump(Formatter *f) const
 {
   f->dump_stream("from") << from;
-  f->dump_stream("tid") << tid;
+  f->dump_unsigned("tid", tid);
   f->open_array_section("buffers_read");
   for (map<hobject_t, list<pair<uint64_t, bufferlist> > >::const_iterator i =
         buffers_read.begin();
index 33e7fbdb9d25f354fa408ae0f40cffa6d0bf3cf9..bfa819ddbd21985241f5a49b02d1c7420d45e04b 100644 (file)
@@ -33,7 +33,7 @@ void OpRequest::_dump(utime_t now, Formatter *f) const
     stringstream client_name;
     client_name << m->get_orig_source();
     f->dump_string("client", client_name.str());
-    f->dump_int("tid", m->get_tid());
+    f->dump_unsigned("tid", m->get_tid());
     f->close_section(); // client_info
   }
   {