MySQL 8.4.2
Source Code Documentation
|
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... | |
|
static |
Acquire an exclusive MDL lock on resource group name.
thd | Pointer to THD context. |
res_grp_name | Resource group name. |
|
inline |
Check if given resource group name is a default resource group.
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.
[out] | vcpu_range_vector | vector of validated resourcegroups::Range objects. |
cpu_list | Array of resourcegroups::Range objects representing CPU identifiers or ranges of CPU identifiers specified in the statements CREATE RESOURCE GROUP, ALTER RESOURCE GROUP. | |
num_vcpus | Number of VCPUS. |