Update StorageDistributed.cpp

This commit is contained in:
tavplubix 2021-04-12 14:58:24 +03:00 committed by GitHub
parent 5e00808011
commit a995962e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,7 +753,7 @@ void StorageDistributed::alter(const AlterCommands & params, ContextPtr local_co
void StorageDistributed::startup() 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."); LOG_WARNING(log, "Name of remote database is empty. Default database will be used implicitly.");
if (!storage_policy) if (!storage_policy)