mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
bugfix: use THD::main_mem_root for kill error message
cannot use the current THD::mem_root, because it can be temporarily reassigned to something with a very different life time (e.g. to TABLE::mem_root or range optimizer mem_root).
This commit is contained in:
@@ -3729,7 +3729,8 @@ public:
|
|||||||
The worst things that can happen is that we get
|
The worst things that can happen is that we get
|
||||||
a suboptimal error message.
|
a suboptimal error message.
|
||||||
*/
|
*/
|
||||||
if ((killed_err= (err_info*) alloc(sizeof(*killed_err))))
|
killed_err= (err_info*) alloc_root(&main_mem_root, sizeof(*killed_err));
|
||||||
|
if (killed_err)
|
||||||
{
|
{
|
||||||
killed_err->no= killed_errno_arg;
|
killed_err->no= killed_errno_arg;
|
||||||
::strmake((char*) killed_err->msg, killed_err_msg_arg,
|
::strmake((char*) killed_err->msg, killed_err_msg_arg,
|
||||||
|
Reference in New Issue
Block a user