MySQL 9.4.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
handler.cc File Reference

TempTable public handler API implementation. More...

Namespaces

namespace  temptable
 

Macros

#define DBUG_RET(result)   return static_cast<int>(result)
 

Functions

static void temptable::kv_store_shards_debug_dump ()
 Small helper function which debug-prints the miscellaneous statistics which key-value store has collected. More...
 
static void temptable::log_event (const std::string &msg, loglevel lvl)
 Helper function that calls the logging API to log errors. More...
 
static void temptable::erase_owned_temptables (THD *thd)
 Function that erases leaked temptables by accessing the appropriate shard for the THD involved and iterating through the shard to find all temptables owned by this THD. More...
 
static void temptable::shared_block_pool_release (THD *thd)
 Small helper function which releases the slot (and memory occupied by the Block) in shared-block pool. More...
 
void temptable::close_connection (THD *thd)
 Helper function that performs the temptable related cleanup. More...
 

Variables

static Sharded_key_value_store< KV_STORE_SHARDS_COUNT > temptable::kv_store_shard
 Key-value store containing all tables for all existing connections. More...
 
static Lock_free_shared_block_pool< SHARED_BLOCK_POOL_SIZE > temptable::shared_block_pool
 

Detailed Description

TempTable public handler API implementation.

Macro Definition Documentation

◆ DBUG_RET

#define DBUG_RET (   result)    return static_cast<int>(result)