MySQL 8.4.0
Source Code Documentation
backup_comp_constants.h
Go to the documentation of this file.
1/* Copyright (c) 2019, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef BACKUP_COMP_CONSTANTS_H
25#define BACKUP_COMP_CONSTANTS_H
26
28
29// Backup constants
30constexpr const char *mysqlbackup{"mysqlbackup"};
31constexpr const char *backupid{"backupid"};
32constexpr const char *reqd_priv_str{"SUPER or BACKUP_ADMIN"};
33constexpr const char *backup_component_version{"mysqlbackup.component_version"};
34
35// Page-track constants
36constexpr const char *page_track{"page_track"};
37constexpr const char *backupdir{"backupdir"};
38constexpr const char *udf_set_page_tracking{"mysqlbackup_page_track_set"};
39constexpr const char *udf_get_start_lsn{"mysqlbackup_page_track_get_start_lsn"};
40constexpr const char *udf_get_changed_pages{
41 "mysqlbackup_page_track_get_changed_pages"};
42constexpr const char *udf_get_changed_page_count{
43 "mysqlbackup_page_track_get_changed_page_count"};
44constexpr const char *udf_page_track_purge_up_to{
45 "mysqlbackup_page_track_purge_up_to"};
46// Changed pages file path
47constexpr const char *backup_scratch_dir{"#meb"};
48// Changed pages file extension
49constexpr const char *change_file_extension{".idx"};
50// 4 bytes for space id + 4 bytes for the page number
51constexpr size_t page_number_size{8};
52
53} // namespace Backup_comp_constants
54
55#endif // BACKUP_COMP_CONSTANTS_H
Definition: backup_comp_constants.h:27
constexpr const char * reqd_priv_str
Definition: backup_comp_constants.h:32
constexpr const char * udf_set_page_tracking
Definition: backup_comp_constants.h:38
constexpr const char * mysqlbackup
Definition: backup_comp_constants.h:30
constexpr const char * backupid
Definition: backup_comp_constants.h:31
constexpr const char * backupdir
Definition: backup_comp_constants.h:37
constexpr const char * backup_scratch_dir
Definition: backup_comp_constants.h:47
constexpr const char * udf_get_changed_page_count
Definition: backup_comp_constants.h:42
constexpr size_t page_number_size
Definition: backup_comp_constants.h:51
constexpr const char * change_file_extension
Definition: backup_comp_constants.h:49
constexpr const char * backup_component_version
Definition: backup_comp_constants.h:33
constexpr const char * page_track
Definition: backup_comp_constants.h:36
constexpr const char * udf_get_start_lsn
Definition: backup_comp_constants.h:39
constexpr const char * udf_get_changed_pages
Definition: backup_comp_constants.h:40
constexpr const char * udf_page_track_purge_up_to
Definition: backup_comp_constants.h:44