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

Method updateTaskQueueFromLog

src/Statistics/AutoStatisticsManager.cpp:546–561  ·  view source on GitHub ↗

return max_event_time of current log

Source from the content-addressed store, hash-verified

544}
545// return max_event_time of current log
546TimePoint AutoStatisticsManager::updateTaskQueueFromLog(TimePoint min_event_time)
547{
548 context->getAutoStatsTaskLog()->flush(true);
549
550 /// record current time before read log
551 /// in case reading log consume too much time
552 auto current_time = nowTimePoint();
553
554 auto task_log_infos = batchReadTaskLog(context, convertToDateTime64(min_event_time));
555 for (const auto & task_log_info : task_log_infos)
556 {
557 task_queue.updateTasksFromLogIfNeeded(task_log_info);
558 }
559
560 return current_time;
561}
562
563void AutoStatisticsManager::logTaskIfNeeded(
564 const StatsTableIdentifier & table, UInt64 udi_count, UInt64 stats_row_count, DateTime64 timestamp)

Callers

nothing calls this directly

Calls 6

nowTimePointFunction · 0.85
batchReadTaskLogFunction · 0.85
convertToDateTime64Function · 0.85
getAutoStatsTaskLogMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected