Skip to content

Commit

Permalink
Avoid caching wsrep threads (fixed the erroneous condition).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirbhay Choubey committed Sep 14, 2015
1 parent a401c11 commit eac8e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit eac8e43

Please sign in to comment.