return max_event_time of current log
| 544 | } |
| 545 | // return max_event_time of current log |
| 546 | TimePoint 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 | |
| 563 | void AutoStatisticsManager::logTaskIfNeeded( |
| 564 | const StatsTableIdentifier & table, UInt64 udi_count, UInt64 stats_row_count, DateTime64 timestamp) |
nothing calls this directly
no test coverage detected