mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
a588947fe2
CurrentMetrics::Increment add amount for specified metric only for the lifetime of the object, but this is not the intention, since DistributedFilesToInsert is a gauge and after #10263 it can exit from the callback (and enter again later, for example after SYSTEM STOP DISTRIBUTED SEND it will always exit from it, until SYSTEM START DISTRIBUTED SEND). So make Increment member of a class (this will also fix possible issues with substructing value on DROP TABLE). |
||
---|---|---|
.. | ||
DirectoryMonitor.cpp | ||
DirectoryMonitor.h | ||
DistributedBlockOutputStream.cpp | ||
DistributedBlockOutputStream.h |