diff --git a/dbms/src/Interpreters/MetricLog.cpp b/dbms/src/Interpreters/MetricLog.cpp index 5c526d002d6..088cb7cabd2 100644 --- a/dbms/src/Interpreters/MetricLog.cpp +++ b/dbms/src/Interpreters/MetricLog.cpp @@ -47,14 +47,14 @@ void MetricLogElement::appendToBlock(Block & block) const //ProfileEvents for (size_t i = 0, end = ProfileEvents::end(); i < end; ++i) { - UInt64 value = ProfileEvents::global_counters[i]; + const UInt64 value = ProfileEvents::global_counters[i]; columns[iter++]->insert(value); } //CurrentMetrics for (size_t i = 0, end = CurrentMetrics::end(); i < end; ++i) { - UInt64 value = CurrentMetrics::values[i]; + const UInt64 value = CurrentMetrics::values[i]; columns[iter++]->insert(value); } } diff --git a/dbms/src/Interpreters/SystemLog.cpp b/dbms/src/Interpreters/SystemLog.cpp index 8df20c4c8b5..6e63951d9ec 100644 --- a/dbms/src/Interpreters/SystemLog.cpp +++ b/dbms/src/Interpreters/SystemLog.cpp @@ -38,6 +38,7 @@ std::shared_ptr createSystemLog( return std::make_shared(context, database, table, engine, flush_interval_milliseconds); } + } @@ -108,5 +109,6 @@ void SystemLogs::metricThreadFunction() } } +} }