Debian Codegraph @

storage/innobase/include/buf0dump.h

raw
1 /*****************************************************************************
2
3 Copyright (c) 2011, 2026, Oracle and/or its affiliates.
4
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License, version 2.0, as published by the
7 Free Software Foundation.
8
9 This program is designed to work with certain software (including
10 but not limited to OpenSSL) that is licensed under separate terms,
11 as designated in a particular file or component or in included license
12 documentation. The authors of MySQL hereby grant you an additional
13 permission to link the program and your derivative works with the
14 separately licensed software that they have either included with
15 the program or referenced in the documentation.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20 for more details.
21
22 You should have received a copy of the GNU General Public License along with
23 this program; if not, write to the Free Software Foundation, Inc.,
24 51 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. */
43 void 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. */
49 void 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. */
54 void buf_load_abort();
55
56 /** This is the main thread for buffer pool dump/load. It waits for an
57 event and when waked up either performs a dump or load and sleeps
58 again. */
59 void 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). */
64 void buf_dump_generate_path(char *path, size_t path_size);
65
66 #endif /* buf0dump_h */