1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

Avoid caching wsrep threads (fixed the erroneous condition).

This commit is contained in:
Nirbhay Choubey
2015-09-14 15:43:16 -04:00
parent a401c11c4e
commit eac8e43541

View File

@@ -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 */