From 808713471c8a31a856b46b8d8be60489af27587e Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com> Date: Fri, 26 Jun 2020 05:18:57 +0300 Subject: [PATCH] Update AsynchronousMetrics.h --- src/Interpreters/AsynchronousMetrics.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Interpreters/AsynchronousMetrics.h b/src/Interpreters/AsynchronousMetrics.h index dc892b9d40c..6ab32ff9ab6 100644 --- a/src/Interpreters/AsynchronousMetrics.h +++ b/src/Interpreters/AsynchronousMetrics.h @@ -25,7 +25,10 @@ typedef std::unordered_map AsynchronousMet class AsynchronousMetrics { public: - AsynchronousMetrics(Context & context_, int update_period_seconds) + // The default value of update_period_seconds is for ClickHouse-over-YT + // in Arcadia -- it uses its own server implementation that also uses these + // metrics. + AsynchronousMetrics(Context & context_, int update_period_seconds = 60) : context(context_), update_period(update_period_seconds), thread([this] { run(); })