MySQL 9.0.0
Source Code Documentation
buf0dump.h File Reference

Implements a buffer pool dump/load. More...

#include "univ.i"

Go to the source code of this file.

Functions

void buf_dump_start ()
 Wakes up the buffer pool dump/load thread and instructs it to start a dump. More...
 
void buf_load_start ()
 Wakes up the buffer pool dump/load thread and instructs it to start a load. More...
 
void buf_load_abort ()
 Aborts a currently running buffer pool load. More...
 
void buf_dump_thread ()
 This is the main thread for buffer pool dump/load. More...
 
void buf_dump_generate_path (char *path, size_t path_size)
 Generate the path to the buffer pool dump/load file. More...
 

Detailed Description

Implements a buffer pool dump/load.

Created April 08, 2011 Vasil Dimov

Function Documentation

◆ buf_dump_generate_path()

void buf_dump_generate_path ( char *  path,
size_t  path_size 
)

Generate the path to the buffer pool dump/load file.

Parameters
[out]pathgenerated path
[in]path_sizesize of 'path', used as in snprintf(3).

◆ buf_dump_start()

void buf_dump_start ( )

Wakes up the buffer pool dump/load thread and instructs it to start a dump.

This function is called by MySQL code via buffer_pool_dump_now() and it should return immediately because the whole MySQL is frozen during its execution.

◆ buf_dump_thread()

void buf_dump_thread ( )

This is the main thread for buffer pool dump/load.

It waits for an event and when waked up either performs a dump or load and sleeps again.

◆ buf_load_abort()

void buf_load_abort ( )

Aborts a currently running buffer pool load.

This function is called by MySQL code via buffer_pool_load_abort() and it should return immediately because the whole MySQL is frozen during its execution.

◆ buf_load_start()

void buf_load_start ( )

Wakes up the buffer pool dump/load thread and instructs it to start a load.

This function is called by MySQL code via buffer_pool_load_now() and it should return immediately because the whole MySQL is frozen during its execution.