From 23583ccc25a33c1d997cff9d65a48569eac1392c Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 9 May 2018 15:19:18 +0100 Subject: [PATCH] osd: write "bench" output to stdout ...not stderr. Seems more reasonable as this command is essentially feeding back a measurement result, rather than just commenting on its status Fixes: http://tracker.ceph.com/issues/24022 Signed-off-by: John Spray --- src/osd/OSD.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 40908543089..9d47589871b 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6124,9 +6124,9 @@ void OSD::do_command(Connection *con, ceph_tid_t tid, vector& cmd, buffe f->dump_int("blocksize", bsize); f->dump_unsigned("bytes_per_sec", rate); f->close_section(); - f->flush(ss); + f->flush(ds); } else { - ss << "bench: wrote " << byte_u_t(count) + ds << "bench: wrote " << byte_u_t(count) << " in blocks of " << byte_u_t(bsize) << " in " << (end-start) << " sec at " << byte_u_t(rate) << "/sec"; } -- 2.47.3