From eac8e43541afdbc60b7e6c954d310db9b37db2d5 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Mon, 14 Sep 2015 15:43:16 -0400 Subject: [PATCH] Avoid caching wsrep threads (fixed the erroneous condition). --- sql/mysqld.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index fab1477a87b..9154b84cfe8 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3049,7 +3049,7 @@ bool one_thread_per_connection_end(THD *thd, bool put_in_cache) set_current_thd(0); #ifdef WITH_WSREP - if (put_in_cache && cache_thread() && !wsrep_applier) + if (!wsrep_applier && put_in_cache && cache_thread()) #else if (put_in_cache && cache_thread()) #endif /* WITH_WSREP */