Skip to content

Commit 88519c9

Browse files
committed
Disable VATS on slave servers during replication.
1 parent 87abc87 commit 88519c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/rpl_parallel.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ handle_rpl_parallel_thread(void *arg)
992992
rpl_sql_thread_info sql_info(NULL);
993993
int err;
994994

995+
is_slave_replication = true;
995996
struct rpl_parallel_thread *rpt= (struct rpl_parallel_thread *)arg;
996997

997998
my_thread_init();
@@ -1412,7 +1413,7 @@ handle_rpl_parallel_thread(void *arg)
14121413
mysql_mutex_unlock(&rpt->LOCK_rpl_thread);
14131414

14141415
my_thread_end();
1415-
1416+
is_slave_replication = false;
14161417
return NULL;
14171418
}
14181419

0 commit comments

Comments
 (0)