From: Sage Weil Date: Tue, 24 Sep 2019 18:46:59 +0000 (-0500) Subject: osd/osd_types: show in and out byte counts for OSDOp X-Git-Tag: v15.1.0~1384^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2870f8e53c734c9fd7e52f3348be6e17fa960b0f;p=ceph-ci.git osd/osd_types: show in and out byte counts for OSDOp This will appear in the MOSDOp[Reply] message strings. Signed-off-by: Sage Weil --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 86c98fc53b7..69e8157a923 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -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; }