MySQL 8.0.39
Source Code Documentation
buf0dump.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 2011, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/buf0dump.h
29 Implements a buffer pool dump/load.
30
31 Created April 08, 2011 Vasil Dimov
32 *******************************************************/
33
34#ifndef buf0dump_h
35#define buf0dump_h
36
37#include "univ.i"
38
39/** Wakes up the buffer pool dump/load thread and instructs it to start
40 a dump. This function is called by MySQL code via buffer_pool_dump_now()
41 and it should return immediately because the whole MySQL is frozen during
42 its execution. */
43void buf_dump_start();
44
45/** Wakes up the buffer pool dump/load thread and instructs it to start
46 a load. This function is called by MySQL code via buffer_pool_load_now()
47 and it should return immediately because the whole MySQL is frozen during
48 its execution. */
49void buf_load_start();
50
51/** Aborts a currently running buffer pool load. This function is called by
52 MySQL code via buffer_pool_load_abort() and it should return immediately
53 because the whole MySQL is frozen during its execution. */
54void buf_load_abort();
55
56/** This is the main thread for buffer pool dump/load. It waits for an
57event and when waked up either performs a dump or load and sleeps
58again. */
59void buf_dump_thread();
60
61/** Generate the path to the buffer pool dump/load file.
62@param[out] path generated path
63@param[in] path_size size of 'path', used as in snprintf(3). */
64void buf_dump_generate_path(char *path, size_t path_size);
65
66#endif /* buf0dump_h */
void buf_dump_start()
Wakes up the buffer pool dump/load thread and instructs it to start a dump.
Definition: buf0dump.cc:90
void buf_load_abort()
Aborts a currently running buffer pool load.
Definition: buf0dump.cc:671
void buf_dump_thread()
This is the main thread for buffer pool dump/load.
Definition: buf0dump.cc:676
void buf_dump_generate_path(char *path, size_t path_size)
Generate the path to the buffer pool dump/load file.
Definition: buf0dump.cc:196
void buf_load_start()
Wakes up the buffer pool dump/load thread and instructs it to start a load.
Definition: buf0dump.cc:99
static char * path
Definition: mysqldump.cc:137
Version control for database, common definitions, and include files.