mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Make SHOW EXPLAIN give a separate timeout error.
This commit is contained in:
@@ -2121,9 +2121,18 @@ void mysqld_show_explain(THD *thd, ulong thread_id)
|
|||||||
if (bres || explain_req.failed_to_produce)
|
if (bres || explain_req.failed_to_produce)
|
||||||
{
|
{
|
||||||
/* TODO not enabled or time out */
|
/* TODO not enabled or time out */
|
||||||
my_error(ER_ERROR_WHEN_EXECUTING_COMMAND, MYF(0),
|
if (timed_out)
|
||||||
"SHOW EXPLAIN",
|
{
|
||||||
"Target is not running EXPLAINable command");
|
my_error(ER_ERROR_WHEN_EXECUTING_COMMAND, MYF(0),
|
||||||
|
"SHOW EXPLAIN",
|
||||||
|
"Timeout");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
my_error(ER_ERROR_WHEN_EXECUTING_COMMAND, MYF(0),
|
||||||
|
"SHOW EXPLAIN",
|
||||||
|
"Target is not running EXPLAINable command");
|
||||||
|
}
|
||||||
bres= TRUE;
|
bres= TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user