utils/check-style/check-style -n

This commit is contained in:
Alexey Milovidov 2018-11-19 18:09:19 +03:00
parent e8fbe299b6
commit c843bc1d58

View File

@ -301,7 +301,7 @@ bool DDLWorker::initAndCheckTask(const String & entry_name, String & out_reason)
for (const HostID & host : task->entry.hosts)
{
auto maybe_secure_port = context.getTCPPortSecure();
/// The port is considered local if it matches TCP or TCP secure port that the server is listening.
bool is_local_port = (maybe_secure_port && host.isLocalAddress(*maybe_secure_port))
|| host.isLocalAddress(context.getTCPPort());