Update ReplicatedMergeTreeCleanupThread.cpp

This commit is contained in:
Vadim 2018-08-23 19:02:19 +03:00 committed by GitHub
parent ce217af78a
commit e7d6bc3dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,8 +203,7 @@ void ReplicatedMergeTreeCleanupThread::markLostReplicas(const std::unordered_map
auto multi_responses = pair.second.get();
if (multi_responses.responses[0]->error == ZooKeeperImpl::ZooKeeper::ZBADVERSION)
throw Exception(pair.first.name + " became active, when we clear log", DB::ErrorCodes::REPLICA_STATUS_CHANGED);
else if (multi_responses.error != ZooKeeperImpl::ZooKeeper::ZOK)
zkutil::KeeperMultiException::check(multi_responses.error, pair.first.requests, multi_responses.responses);
zkutil::KeeperMultiException::check(multi_responses.error, pair.first.requests, multi_responses.responses);
}
}