summaryrefslogtreecommitdiff
path: root/sql/threadpool_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r--sql/threadpool_common.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc
index a0d1532e31a..24ab972776c 100644
--- a/sql/threadpool_common.cc
+++ b/sql/threadpool_common.cc
@@ -171,7 +171,7 @@ void tp_callback(TP_connection *c)
c->state = TP_STATE_RUNNING;
- if (!thd)
+ if (unlikely(!thd))
{
/* No THD, need to login first. */
DBUG_ASSERT(c->connect);