Skip to content

Commit f49500a

Browse files
temeoNirbhay Choubey
authored andcommitted
MW-44 Disable general log for applier threads
1 parent 3f22e74 commit f49500a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/wsrep_thd.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ static void wsrep_prepare_bf_thd(THD *thd, struct wsrep_thd_shadow* shadow)
139139
shadow->wsrep_exec_mode = thd->wsrep_exec_mode;
140140
shadow->vio = thd->net.vio;
141141

142+
// Disable general logging on applier threads
143+
thd->variables.option_bits |= OPTION_LOG_OFF;
144+
// Enable binlogging if opt_log_slave_updates is set
142145
if (opt_log_slave_updates)
143146
thd->variables.option_bits|= OPTION_BIN_LOG;
144147
else

0 commit comments

Comments
 (0)