diff options
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 57b7ce09ab5..f7ae0783e5e 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -731,9 +731,15 @@ static int use_db(char *database) DBUG_RETURN(0); } /* use_db */ +/* Do not send commands to replication slaves. */ static int disable_binlog() { +#ifdef WITH_WSREP + /* Additionally turn off @@wsrep_on to disable implicit binary logging. */ + const char *stmt= "SET SQL_LOG_BIN=0, WSREP_ON=OFF"; +#else const char *stmt= "SET SQL_LOG_BIN=0"; +#endif /* WITH_WSREP */ return run_query(stmt); } |