mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-6247: Merge 10.0-galera to 10.1.
Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user