]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/osd_types: show in and out byte counts for OSDOp
authorSage Weil <sage@redhat.com>
Tue, 24 Sep 2019 18:46:59 +0000 (13:46 -0500)
committerSage Weil <sage@redhat.com>
Wed, 25 Sep 2019 16:06:10 +0000 (11:06 -0500)
This will appear in the MOSDOp[Reply] message strings.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc

index 86c98fc53b7106304a8d95d4958924fca17176c8..69e8157a92349c5a4da48d1c8750dc12327074de 100644 (file)
@@ -6673,6 +6673,12 @@ ostream& operator<<(ostream& out, const OSDOp& op)
       break;
     }
   }
+  if (op.indata.length()) {
+    out << " in=" << op.indata.length() << "b";
+  }
+  if (op.outdata.length()) {
+    out << " out=" << op.outdata.length() << "b";
+  }
   return out;
 }