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

Method setFileProgressCallback

src/Common/ProgressIndication.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void ProgressIndication::setFileProgressCallback(ContextMutablePtr context, bool write_progress_on_update_)
38{
39 write_progress_on_update = write_progress_on_update_;
40 context->setFileProgressCallback([&](const FileProgress & file_progress)
41 {
42 progress.incrementPiecewiseAtomically(Progress(file_progress));
43
44 if (write_progress_on_update)
45 writeProgress();
46 });
47}
48
49void ProgressIndication::writeFinalProgress()
50{

Callers 2

sendDataMethod · 0.45
processQueriesMethod · 0.45

Calls 2

ProgressClass · 0.70

Tested by

no test coverage detected