mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-28978 Assertion failure in THD::binlog_query or unexpected
ER_ERROR_ON_WRITE with auto-partitioning Added check whether binlogging is enabled before doing binlog_query().
This commit is contained in:
@@ -7358,7 +7358,7 @@ int THD::binlog_flush_pending_rows_event(bool stmt_end, bool is_transactional)
|
||||
*/
|
||||
bool THD::binlog_for_noop_dml(bool transactional_table)
|
||||
{
|
||||
if (log_current_statement())
|
||||
if (mysql_bin_log.is_open() && log_current_statement())
|
||||
{
|
||||
reset_unsafe_warnings();
|
||||
if (binlog_query(THD::STMT_QUERY_TYPE, query(), query_length(),
|
||||
|
Reference in New Issue
Block a user