mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
test/lazy-omap-stats: Immediate deep-scrub output
Show stdout from the child process as it happens. Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
This commit is contained in:
parent
1f6f9b24e4
commit
3e79a035ee
@ -174,13 +174,13 @@ void LazyOmapStatsTest::scrub() const
|
||||
cout << "Scrubbing" << endl;
|
||||
error_code ec;
|
||||
bp::ipstream is;
|
||||
bp::system("ceph osd deep-scrub all --block", bp::std_out > is, ec);
|
||||
bp::child c("ceph osd deep-scrub all --block");
|
||||
c.wait(ec);
|
||||
if (ec) {
|
||||
cout << "Deep scrub command failed! Error: " << ec.value() << " "
|
||||
<< ec.message() << endl;
|
||||
exit(ec.value());
|
||||
}
|
||||
cout << is.rdbuf() << endl;
|
||||
}
|
||||
|
||||
const int LazyOmapStatsTest::find_matches(string& output, regex& reg) const
|
||||
|
Loading…
Reference in New Issue
Block a user