MySQL 8.4.0
Source Code Documentation
anonymous_namespace{resource_group_sql_cmd.cc} Namespace Reference

Classes

class  Move_thread_to_default_group
 This class represents a functional call to move a thread specified by pfs_thread_id to a resource group specified in class' constructor. More...
 

Functions

static bool acquire_exclusive_mdl_for_resource_group (THD *thd, const char *res_grp_name)
 Acquire an exclusive MDL lock on resource group name. More...
 
bool validate_vcpu_range_vector (std::vector< resourcegroups::Range > *vcpu_range_vector, const Mem_root_array< resourcegroups::Range > *cpu_list, uint32_t num_vcpus)
 Validate CPU id ranges provided by a user in the statements CREATE RESOURCE GROUP, ALTER RESOURCE GROUP. More...
 
bool is_default_resource_group (const char *res_grp_name)
 Check if given resource group name is a default resource group. More...
 

Function Documentation

◆ acquire_exclusive_mdl_for_resource_group()

static bool anonymous_namespace{resource_group_sql_cmd.cc}::acquire_exclusive_mdl_for_resource_group ( THD thd,
const char *  res_grp_name 
)
static

Acquire an exclusive MDL lock on resource group name.

Parameters
thdPointer to THD context.
res_grp_nameResource group name.
Returns
true if lock acquisition failed else false.

◆ is_default_resource_group()

bool anonymous_namespace{resource_group_sql_cmd.cc}::is_default_resource_group ( const char *  res_grp_name)
inline

Check if given resource group name is a default resource group.

◆ validate_vcpu_range_vector()

bool anonymous_namespace{resource_group_sql_cmd.cc}::validate_vcpu_range_vector ( std::vector< resourcegroups::Range > *  vcpu_range_vector,
const Mem_root_array< resourcegroups::Range > *  cpu_list,
uint32_t  num_vcpus 
)

Validate CPU id ranges provided by a user in the statements CREATE RESOURCE GROUP, ALTER RESOURCE GROUP.

Parameters
[out]vcpu_range_vectorvector of validated resourcegroups::Range objects.
cpu_listArray of resourcegroups::Range objects representing CPU identifiers or ranges of CPU identifiers specified in the statements CREATE RESOURCE GROUP, ALTER RESOURCE GROUP.
num_vcpusNumber of VCPUS.