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

Method flushBuffersData

src/Databases/MySQL/MaterializeMySQLSyncThread.cpp:354–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354void MaterializeMySQLSyncThread::flushBuffersData(Buffers & buffers, MaterializeMetadata & metadata)
355{
356 if (buffers.data.empty())
357 return;
358
359 auto position = client.getPosition();
360
361 metadata.transaction(position, [&]() { buffers.commit(getContext(), position); });
362
363 LOG_INFO(log, "Finish flushing and MySQL executed position: \n {}", dumpPosition(position));
364}
365
366static inline void fillSignColumnsData(Block & data, Int8 sign_value, size_t fill_size)
367{

Callers

nothing calls this directly

Calls 5

dumpPositionFunction · 0.85
transactionMethod · 0.80
emptyMethod · 0.45
getPositionMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected