dbms: Server: queries with several replicas: development [#METR-14410]

This commit is contained in:
Alexey Arno 2015-01-21 14:28:19 +03:00
parent b75b8bbca1
commit 1b48a66c6d

View File

@ -281,6 +281,16 @@ BlockInputStreams MergeTreeDataSelectExecutor::read(
});
final_parts_with_ranges = hashed_replica_parts[settings.parallel_replica_offset].second;
/// Пересчитываем количество засечек и диапазонов.
sum_marks = 0;
sum_ranges = 0;
for (const auto & part_with_ranges : *final_parts_with_ranges)
{
sum_ranges += part_with_ranges.ranges.size();
for (const auto & range : part_with_ranges.ranges)
sum_marks += range.end - range.begin;
}
}
}