MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / clearProgressOutput

Method clearProgressOutput

src/Common/ProgressIndication.cpp:295–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void ProgressIndication::clearProgressOutput(WriteBufferFromFileDescriptor & message, std::unique_lock<std::mutex> &)
296{
297 std::lock_guard lock(progress_mutex);
298
299 if (written_progress_chars)
300 {
301 written_progress_chars = 0;
302 message << "\r" CLEAR_TO_END_OF_LINE;
303 message.next();
304 }
305}
306
307}

Callers 7

onLogDataMethod · 0.80
initOutputFormatMethod · 0.80
onEndOfStreamMethod · 0.80
onProfileEventsMethod · 0.80
cancelQueryMethod · 0.80

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected