MySQL 8.4.3
Source Code Documentation
sql_restart_server.cc File Reference
#include "sql_restart_server.h"
#include <sys/types.h>
#include <unistd.h>
#include <sstream>
#include "my_thread.h"
#include "mysql/components/services/log_builtins.h"
#include "mysqld.h"
#include "mysqld_error.h"
#include "nulls.h"
#include "sql/auth/auth_acls.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/sql_class.h"
#include "sql/sql_lex.h"

Functions

static bool check_restart_server_admin_privilege (THD *thd)
 Check if a current user has the privilege SHUTDOWN_ACL required to run the statement RESTART. More...
 
bool is_mysqld_managed ()
 Check if mysqld is managed by an external supervisor. More...
 

Variables

my_thread_handle signal_thread_id
 

Function Documentation

◆ check_restart_server_admin_privilege()

static bool check_restart_server_admin_privilege ( THD thd)
inlinestatic

Check if a current user has the privilege SHUTDOWN_ACL required to run the statement RESTART.

Parameters
thdCurrent thread
Return values
falseA user has the privilege SHUTDOWN_ACL.
trueA user doesn't have the privilege SHUTDOWN_ACL..

◆ is_mysqld_managed()

bool is_mysqld_managed ( )

Check if mysqld is managed by an external supervisor.

Returns
true if it is under control of supervisor else false.

Variable Documentation

◆ signal_thread_id

my_thread_handle signal_thread_id
extern