Update src/Storages/StorageReplicatedMergeTree.cpp

Co-authored-by: Bharat Nallan <bharatnc@gmail.com>
This commit is contained in:
tavplubix 2022-01-24 12:12:03 +03:00 committed by GitHub
parent 8921725d71
commit 2f566d2af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4808,7 +4808,7 @@ void StorageReplicatedMergeTree::restoreMetadataInZooKeeper()
if (getZooKeeper()->exists(replica_path))
throw Exception(ErrorCodes::BAD_ARGUMENTS,
"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);
if (has_metadata_in_zookeeper.has_value() && *has_metadata_in_zookeeper)