This commit is contained in:
Nikita Mikhaylov 2019-08-13 19:17:18 +03:00
parent aab140ceff
commit 7dba25ff9d
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -38,6 +38,7 @@ std::shared_ptr<TSystemLog> createSystemLog(
return std::make_shared<TSystemLog>(context, database, table, engine, flush_interval_milliseconds);
}
}
@ -108,5 +109,6 @@ void SystemLogs::metricThreadFunction()
}
}
}
}