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
8921725d71
commit
2f566d2af9
@ -4808,7 +4808,7 @@ void StorageReplicatedMergeTree::restoreMetadataInZooKeeper()
|
|||||||
if (getZooKeeper()->exists(replica_path))
|
if (getZooKeeper()->exists(replica_path))
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
||||||
"Replica path is present at {} - nothing to restore. "
|
"Replica path is present at {} - nothing to restore. "
|
||||||
"If you are sure that metadata is lost and replica path contain some garbage, "
|
"If you are sure that metadata is lost and that replica path contains some garbage, "
|
||||||
"then use SYSTEM DROP REPLICA query first.", replica_path);
|
"then use SYSTEM DROP REPLICA query first.", replica_path);
|
||||||
|
|
||||||
if (has_metadata_in_zookeeper.has_value() && *has_metadata_in_zookeeper)
|
if (has_metadata_in_zookeeper.has_value() && *has_metadata_in_zookeeper)
|
||||||
|
Loading…
Reference in New Issue
Block a user