]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: write "bench" output to stdout
authorJohn Spray <john.spray@redhat.com>
Wed, 9 May 2018 14:19:18 +0000 (15:19 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 11 Sep 2018 20:02:25 +0000 (22:02 +0200)
...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 <john.spray@redhat.com>
(cherry picked from commit 23583ccc25a33c1d997cff9d65a48569eac1392c)

src/osd/OSD.cc

index e17573fdbaf906cadbb173374d048f1eee41b861..dbde8af8a7d080d4bb1f42c3c80afe9727f5efc4 100644 (file)
@@ -6101,9 +6101,9 @@ void OSD::do_command(Connection *con, ceph_tid_t tid, vector<string>& 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";
     }