mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-16286 Killed CREATE SEQUENCE leaves sequence in unusable state
Fixed by deleting the sequence if we where not able to initialize it I also noticed that we didn't always set the error message when check_killed(), which could lead to aborted queries without error beeing properly set. Fixed by default setting error message if check_error() noticed that killed had been called. This allowed me to remove a lot of calls to thd->send_kill_message().
This commit is contained in:
@ -3043,10 +3043,14 @@ public:
|
||||
} *killed_err;
|
||||
|
||||
/* See also thd_killed() */
|
||||
inline bool check_killed()
|
||||
inline bool check_killed(bool dont_send_error_message= 0)
|
||||
{
|
||||
if (unlikely(killed))
|
||||
{
|
||||
if (!dont_send_error_message)
|
||||
send_kill_message();
|
||||
return TRUE;
|
||||
}
|
||||
if (apc_target.have_apc_requests())
|
||||
apc_target.process_apc_requests();
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user