mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Update src/Storages/StorageReplicatedMergeTree.cpp
Co-authored-by: Bharat Nallan <bharatnc@gmail.com>
This commit is contained in:
parent
2f566d2af9
commit
34baca1298
@ -4813,7 +4813,7 @@ void StorageReplicatedMergeTree::restoreMetadataInZooKeeper()
|
|||||||
|
|
||||||
if (has_metadata_in_zookeeper.has_value() && *has_metadata_in_zookeeper)
|
if (has_metadata_in_zookeeper.has_value() && *has_metadata_in_zookeeper)
|
||||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Replica has metadata in ZooKeeper: "
|
throw Exception(ErrorCodes::LOGICAL_ERROR, "Replica has metadata in ZooKeeper: "
|
||||||
"it's a bug or a result of manual intervention into ZooKeeper");
|
"it's either a bug or it's a result of manual intervention to ZooKeeper");
|
||||||
|
|
||||||
if (are_restoring_replica.exchange(true))
|
if (are_restoring_replica.exchange(true))
|
||||||
throw Exception(ErrorCodes::CONCURRENT_ACCESS_NOT_SUPPORTED, "Replica restoration in progress");
|
throw Exception(ErrorCodes::CONCURRENT_ACCESS_NOT_SUPPORTED, "Replica restoration in progress");
|
||||||
|
Loading…
Reference in New Issue
Block a user