summaryrefslogtreecommitdiff
path: root/client/mysqlcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r--client/mysqlcheck.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index f7ae0783e5e..fc196d2f27a 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -734,13 +734,8 @@ static int use_db(char *database)
/* 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);
+ mysql_query(sock, "SET WSREP_ON=0"); /* ignore the error, if any */
+ return run_query("SET SQL_LOG_BIN=0");
}
static int handle_request_for_tables(char *tables, uint length)