MySQL 9.1.0
Source Code Documentation
reference_caching_setup.cc File Reference

Variables

Event_reference_caching_channelsg_event_channels {nullptr}
 All reference caching channels maintained by server to handle event tracking broadcasts. More...
 
const size_t MAX_EVENT_PER_CHANNEL = 6
 
const char * channel_set [][MAX_EVENT_PER_CHANNEL]
 Services handled by each channel. More...
 
std::pair< size_t, size_t > channel_set_mapping []
 A Mapping to identify channel number and offset within the channel for a given event tracking service. More...
 

Variable Documentation

◆ channel_set

const char* channel_set[][MAX_EVENT_PER_CHANNEL]

Services handled by each channel.

We group multiple services so that in case of cache miss, all required references are refreshed in one go.

◆ channel_set_mapping

std::pair<size_t, size_t> channel_set_mapping[]
Initial value:
= {
{2, 0} ,
{0, 0} ,
{0, 1} ,
{0, 2} ,
{1, 0} ,
{3, 0} ,
{4, 0} ,
{0, 3} ,
{5, 0} ,
{5, 0} ,
{6, 0} ,
{0, 4} ,
}

A Mapping to identify channel number and offset within the channel for a given event tracking service.

◆ g_event_channels

All reference caching channels maintained by server to handle event tracking broadcasts.

◆ MAX_EVENT_PER_CHANNEL

const size_t MAX_EVENT_PER_CHANNEL = 6