]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: write "bench" output to stdout 21905/head
authorJohn Spray <john.spray@redhat.com>
Wed, 9 May 2018 14:19:18 +0000 (15:19 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 9 May 2018 14:19:18 +0000 (15:19 +0100)
...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>
src/osd/OSD.cc

index 409085430895ffd999743e85427ae82af0c71d05..9d47589871b0dbb5a859abf5a267211474115db7 100644 (file)
@@ -6124,9 +6124,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";
     }