mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Only print "InnoDB: Transaction was aborted..." if log_warnings >= 4
This is a minor fixup for MDEV-24035 Failing assertion UT_LIST_GET_LEN(lock.trx_locks) == 0 causing disruption and replication failure
This commit is contained in:
@@ -5805,6 +5805,20 @@ extern "C" void *thd_mdl_context(MYSQL_THD thd)
|
||||
return &thd->mdl_context;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
log_warnings accessor
|
||||
@param thd the current session
|
||||
|
||||
@return log warning level
|
||||
*/
|
||||
|
||||
extern "C" int thd_log_warnings(const MYSQL_THD thd)
|
||||
{
|
||||
return thd->variables.log_warnings;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Send check/repair message to the user
|
||||
|
||||
|
Reference in New Issue
Block a user