MCPcopy Create free account
hub / github.com/ByConity/ByConity / resetOutput

Method resetOutput

programs/client/Client.cpp:2034–2055  ·  view source on GitHub ↗

Flush all buffers.

Source from the content-addressed store, hash-verified

2032
2033 /// Flush all buffers.
2034 void resetOutput()
2035 {
2036 output_format.reset();
2037 logs_out_stream.reset();
2038 outfile_target.reset();
2039
2040 if (pager_cmd)
2041 {
2042 pager_cmd->in.close();
2043 pager_cmd->wait();
2044 }
2045 pager_cmd = nullptr;
2046
2047 if (out_logs_buf)
2048 {
2049 out_logs_buf->next();
2050 out_logs_buf.reset();
2051 }
2052
2053 out_path.reset();
2054 std_out.next();
2055 }
2056
2057
2058 /// Receives and processes packets coming from server.

Callers

nothing calls this directly

Calls 4

resetMethod · 0.45
closeMethod · 0.45
waitMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected