mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: fix possible counter value loss between difference calculcation and store. [#METR-10463]
This commit is contained in:
parent
9bb88d4db2
commit
fbf6225911
@ -82,8 +82,9 @@ private:
|
||||
|
||||
for (auto i = 0; i < ProfileEvents::END; ++i)
|
||||
{
|
||||
const auto counter_increment = ProfileEvents::counters[i] - prev_counters[i];
|
||||
prev_counters[i] = ProfileEvents::counters[i];
|
||||
const auto counter = ProfileEvents::counters[i];
|
||||
const auto counter_increment = counter - prev_counters[i];
|
||||
prev_counters[i] = counter;
|
||||
|
||||
std::string key{ProfileEvents::getDescription(static_cast<ProfileEvents::Event>(i))};
|
||||
std::replace(std::begin(key), std::end(key), ' ', '_');
|
||||
|
Loading…
Reference in New Issue
Block a user