mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 13:10:48 +00:00
Update src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp
Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
parent
099c71f70b
commit
d1dea0e95f
@ -117,7 +117,7 @@ ReplicatedMergeTreePartCheckThread::MissingPartSearchResult ReplicatedMergeTreeP
|
|||||||
String replica_path = storage.zookeeper_path + "/replicas/" + *it;
|
String replica_path = storage.zookeeper_path + "/replicas/" + *it;
|
||||||
if (replica_path == storage.replica_path)
|
if (replica_path == storage.replica_path)
|
||||||
{
|
{
|
||||||
std::iter_swap(it, replicas.begin() + replicas.size() - 1);
|
std::iter_swap(it, replicas.rbegin());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user