mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
only account for active parts
This commit is contained in:
parent
41b2b63cee
commit
6125c1692b
@ -291,8 +291,8 @@ void ServerAsynchronousMetrics::updateImpl(AsynchronousMetricValues & new_values
|
||||
total_number_of_parts_system += parts;
|
||||
}
|
||||
|
||||
// fetch the list of all parts regardless of their state
|
||||
auto all_parts = table_merge_tree->getAllDataPartsVector();
|
||||
// only fetch the parts which are in active state
|
||||
auto all_parts = table_merge_tree->getDataPartsVectorForInternalUsage();
|
||||
|
||||
for (size_t part_number = 0; part_number < all_parts.size(); ++part_number)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user