MySQL 26.7.0
Source Code Documentation
mysql::csa::Resource_map Struct Reference

Resources used by a channel. More...

#include <resource_map.h>

Static Public Member Functions

static bool init_resources (std::size_t instance_id, std::size_t channel_memory, PSI_stage_info *waiting_for_channel_memory_stage)
 Registeres named resources for the channel identified by the given instance_id. More...
 

Static Public Attributes

static constexpr auto declared_channel_memory = "declared_channel_memory"
 Declared channel memory. More...
 

Detailed Description

Resources used by a channel.

Contains specific resources names and registeres them at channel start (init_resources).

Member Function Documentation

◆ init_resources()

bool mysql::csa::Resource_map::init_resources ( std::size_t  instance_id,
std::size_t  channel_memory,
PSI_stage_info waiting_for_channel_memory_stage 
)
static

Registeres named resources for the channel identified by the given instance_id.

Parameters
instance_idUnique id representing a given CSA channel
channel_memoryThe amount of memory available for the channel (configured via CRST, APPLIER_EVENT_MEMORY_LIMIT)
waiting_for_channel_memory_stageOptional pointer to stage set during waiting
Returns
False on success, true on failure

Member Data Documentation

◆ declared_channel_memory

constexpr auto mysql::csa::Resource_map::declared_channel_memory = "declared_channel_memory"
staticconstexpr

Declared channel memory.

Each transaction declares that it will use this specific amount of memory during apply phase


The documentation for this struct was generated from the following files: