summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 2d39a8bb03d..00c780d9f35 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -460,7 +460,7 @@ int ip_to_hostname(struct sockaddr_storage *ip_storage,
entry->m_last_seen= now;
*connect_errors= entry->m_errors.m_connect;
- if (entry->m_errors.m_connect >= max_connect_errors)
+ if (unlikely(entry->m_errors.m_connect >= max_connect_errors))
{
entry->m_errors.m_host_blocked++;
entry->set_error_timestamps(now);