Update src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
alesapin 2021-09-10 15:32:24 +03:00 committed by GitHub
parent 099c71f70b
commit d1dea0e95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ ReplicatedMergeTreePartCheckThread::MissingPartSearchResult ReplicatedMergeTreeP
String replica_path = storage.zookeeper_path + "/replicas/" + *it;
if (replica_path == storage.replica_path)
{
std::iter_swap(it, replicas.begin() + replicas.size() - 1);
std::iter_swap(it, replicas.rbegin());
break;
}
}