1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-4660 SHUTDOWN command

Based on James Briggs contribution.
This commit is contained in:
Sergei Golubchik
2013-06-24 20:56:49 +02:00
parent e8ab897fca
commit 31a1934c9c
7 changed files with 55 additions and 3 deletions

View File

@ -3916,6 +3916,17 @@ end_with_restore_list:
lex->kill_signal);
break;
}
case SQLCOM_SHUTDOWN:
#ifndef EMBEDDED_LIBRARY
if (check_global_access(thd,SHUTDOWN_ACL))
goto error;
kill_mysql();
my_ok(thd);
#else
my_error(ER_NOT_SUPPORTED_YET, MYF(0), "embedded server");
#endif
break;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
case SQLCOM_SHOW_GRANTS:
{