Update StorageReplicatedMergeTree.cpp

This commit is contained in:
Vadim 2018-10-10 19:23:50 +03:00 committed by GitHub
parent 93992879bc
commit 25b100c1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2986,7 +2986,7 @@ BlockInputStreams StorageReplicatedMergeTree::read(
ReplicatedMergeTreeQuorumAddedParts part_with_quorum(added_parts_str, data.format_version);
auto added_parts = part_with_quorum.added_parts;
for (auto & added_part : added_parts)
for (const auto & added_part : added_parts)
if (!data.getActiveContainingPart(added_part.second))
throw Exception("Replica doesn't have part " + added_part.second + " which was successfully written to quorum of other replicas."
" Send query to another replica or disable 'select_sequential_consistency' setting.", ErrorCodes::REPLICA_IS_NOT_IN_QUORUM);