mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-22708 Assertion `!mysql_bin_log.is_open() || thd.is_current_stmt_binlog_format_row()' failed in Delayed_insert::handle_inserts and in Diagnostics_area::set_eof_status
Function `upgrade_lock_type` should check global binlog_format variable instead of thread one. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
This commit is contained in:
@ -474,7 +474,7 @@ void upgrade_lock_type(THD *thd, thr_lock_type *lock_type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool log_on= (thd->variables.option_bits & OPTION_BIN_LOG);
|
bool log_on= (thd->variables.option_bits & OPTION_BIN_LOG);
|
||||||
if (thd->wsrep_binlog_format() == BINLOG_FORMAT_STMT &&
|
if (WSREP_BINLOG_FORMAT(global_system_variables.binlog_format) == BINLOG_FORMAT_STMT &&
|
||||||
log_on && mysql_bin_log.is_open())
|
log_on && mysql_bin_log.is_open())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -105,7 +105,7 @@ long wsrep_slave_threads; // No. of slave appliers threads
|
|||||||
ulong wsrep_retry_autocommit; // Retry aborted autocommit trx
|
ulong wsrep_retry_autocommit; // Retry aborted autocommit trx
|
||||||
ulong wsrep_max_ws_size; // Max allowed ws (RBR buffer) size
|
ulong wsrep_max_ws_size; // Max allowed ws (RBR buffer) size
|
||||||
ulong wsrep_max_ws_rows; // Max number of rows in ws
|
ulong wsrep_max_ws_rows; // Max number of rows in ws
|
||||||
ulong wsrep_forced_binlog_format;
|
ulong wsrep_forced_binlog_format= BINLOG_FORMAT_UNSPEC;
|
||||||
ulong wsrep_mysql_replication_bundle;
|
ulong wsrep_mysql_replication_bundle;
|
||||||
bool wsrep_gtid_mode; // Use wsrep_gtid_domain_id
|
bool wsrep_gtid_mode; // Use wsrep_gtid_domain_id
|
||||||
// for galera transactions?
|
// for galera transactions?
|
||||||
|
Reference in New Issue
Block a user