MySQL 9.1.0
Source Code Documentation
srv0tmp.cc File Reference
#include "srv0tmp.h"
#include <algorithm>
#include "dict0dict.h"
#include "ib0mutex.h"
#include "srv0srv.h"
#include "srv0start.h"

Namespaces

namespace  ibt
 

Functions

static dberr_t ibt::create_temp_dir ()
 Create the directory holding the temporary pool tablespaces. More...
 
dberr_t ibt::open_or_create (bool create_new_db)
 Create the session temporary tablespaces on startup. More...
 
void ibt::free_tmp (Tablespace *ts)
 Release a tablespace back to the pool. More...
 
void ibt::delete_pool_manager ()
 Delete the pool manager. More...
 
void ibt::close_files ()
 Close all files in the pool. More...
 
Tablespaceibt::get_rpl_slave_tblsp ()
 

Variables

const uint32_t ibt::INIT_SIZE = 10
 The initial size of temporary tablespace pool. More...
 
const uint32_t ibt::POOL_EXPAND_SIZE = 10
 The number of tablespaces added to the pool every time the pool is expanded. More...
 
const uint32_t ibt::SLAVE_THREAD_ID = UINT32_MAX
 Thread id for the replication thread. More...
 
static const char ibt::DIR_NAME [] = "#innodb_temp"
 Directory to store the session temporary tablespaces. More...
 
static const char ibt::PREFIX_NAME [] = "temp_"
 Filename prefix to identify the session temporary tablespaces. More...
 
static std::string ibt::temp_tbsp_dir
 Directory name where session temporary tablespaces are stored. More...
 
static Tablespaceibt::rpl_slave_tblsp = nullptr
 Tablespace to be used by the replication thread. More...