mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
const
This commit is contained in:
parent
aab140ceff
commit
7dba25ff9d
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user