MySQL 9.1.0
Source Code Documentation
resourcegroups Namespace Reference

Namespaces

namespace  platform
 

Classes

struct  Range
 
class  Resource_group
 Class that represents an abstraction of the Resource Group. More...
 
struct  Resource_group_ctx
 
class  Resource_group_mgr
 This is a singleton class that provides various functionalities related to Resource group management, more importantly the managing and the mapping of resource group names to the corresponding in-memory resource group object. More...
 
class  Sql_cmd_alter_resource_group
 Sql_cmd_alter_resource_group represents ALTER RESOURCE GROUP statement. More...
 
class  Sql_cmd_create_resource_group
 Sql_cmd_create_resource_group represents CREATE RESOURCE GROUP statement. More...
 
class  Sql_cmd_drop_resource_group
 Sql_cmd_drop_resource_group represents DROP RESOURCE GROUP statement. More...
 
class  Sql_cmd_set_resource_group
 Sql_cmd_set_resource_group represents SET RESOURCE GROUP statement. More...
 
class  Thread_resource_control
 Class that abstracts the resource control that can be applied to threads. More...
 

Enumerations

enum class  Type { SYSTEM_RESOURCE_GROUP = 1 , USER_RESOURCE_GROUP }
 

Functions

void thread_create_callback (const PSI_thread_attrs *thread_attrs)
 
void session_disconnect_callback (const PSI_thread_attrs *)
 
static bool persist_resource_group (THD *thd, const resourcegroups::Resource_group &resource_group, bool update)
 Persist an in-memory resource group to Data Dictionary. More...
 
static bool deserialize_resource_groups (THD *thd)
 

Variables

const char * SYS_DEFAULT_RESOURCE_GROUP_NAME = "SYS_default"
 
const char * USR_DEFAULT_RESOURCE_GROUP_NAME = "USR_default"
 

Enumeration Type Documentation

◆ Type

enum class resourcegroups::Type
strong
Enumerator
SYSTEM_RESOURCE_GROUP 
USER_RESOURCE_GROUP 

Function Documentation

◆ deserialize_resource_groups()

static bool resourcegroups::deserialize_resource_groups ( THD thd)
static

◆ persist_resource_group()

static bool resourcegroups::persist_resource_group ( THD thd,
const resourcegroups::Resource_group resource_group,
bool  update 
)
inlinestatic

Persist an in-memory resource group to Data Dictionary.

Parameters
thdpointer to THD.
resource_groupReference to the resource group to be persisted.
updateTrue if the resource groups exists and needs to be updated else resource group is created in DD.
Returns
true if resource group persistence to DD failed else false.

◆ session_disconnect_callback()

void resourcegroups::session_disconnect_callback ( const PSI_thread_attrs )

◆ thread_create_callback()

void resourcegroups::thread_create_callback ( const PSI_thread_attrs thread_attrs)

Variable Documentation

◆ SYS_DEFAULT_RESOURCE_GROUP_NAME

const char * resourcegroups::SYS_DEFAULT_RESOURCE_GROUP_NAME = "SYS_default"

◆ USR_DEFAULT_RESOURCE_GROUP_NAME

const char * resourcegroups::USR_DEFAULT_RESOURCE_GROUP_NAME = "USR_default"