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

Function copyData

src/DataStreams/copyData.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void copyData(IBlockInputStream & from, IBlockOutputStream & to, const std::function<void(const Block & block)> & progress,
53 std::atomic<bool> * is_cancelled)
54{
55 auto is_cancelled_pred = [is_cancelled] ()
56 {
57 return isAtomicSet(is_cancelled);
58 };
59
60 copyDataImpl(from, to, is_cancelled_pred, progress);
61}
62
63inline void doNothing(const Block &) {}
64

Callers 8

writeMethod · 0.70
readImplMethod · 0.70
copyFileFunction · 0.50
readFileMethod · 0.50
writeFileMethod · 0.50
dumpDataForTablesFunction · 0.50
doResyncTableMethod · 0.50
commitMethod · 0.50

Calls 2

isAtomicSetFunction · 0.85
copyDataImplFunction · 0.70

Tested by

no test coverage detected