Merge pull request #22990 from ClickHouse/tavplubix-patch-1

Fix excessive warning in StorageDistributed with cross-replication
This commit is contained in:
tavplubix 2021-04-13 18:58:12 +03:00 committed by GitHub
commit 1525e38a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -755,7 +755,7 @@ void StorageDistributed::alter(const AlterCommands & params, ContextPtr local_co
void StorageDistributed::startup()
{
if (remote_database.empty() && !remote_table_function_ptr)
if (remote_database.empty() && !remote_table_function_ptr && !getCluster()->maybeCrossReplication())
LOG_WARNING(log, "Name of remote database is empty. Default database will be used implicitly.");
if (!storage_policy)