]> 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)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 19 Jun 2014 15:52:06 +0000 (16:52 +0100)
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>
src/osd/ECBackend.cc
src/osd/ECMsgTypes.cc
src/osd/OpRequest.cc

index 5ca66cb4553e83edd75c88da3b7574084a4e4a35..e5bca82c34ab70951a7476fc614654006f532bf0 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 4e4c8e3d94237207cff7c3d83aefaaf49ff2a5ff..73658607a25b03fa37be03c3f78b00cfb11243b9 100644 (file)
@@ -66,7 +66,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;
@@ -121,7 +121,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;
@@ -171,7 +171,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();
@@ -259,7 +259,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 e026bc96bccbfc579bb3090f5469a9c215f266b6..2262ab85391a87db22f277964bbad61f9ab360ae 100644 (file)
@@ -43,7 +43,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
   }
   {