MySQL 8.3.0
Source Code Documentation
global.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2023, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef DD_UPGRADE__GLOBAL_H_INCLUDED
24#define DD_UPGRADE__GLOBAL_H_INCLUDED
25
26#include <sys/types.h>
27
28#include "sql/table.h" // Table_check_intact
29
30class THD;
31class Time_zone;
32
33namespace dd {
34
35namespace upgrade_57 {
36
37const String_type ISL_EXT = ".isl";
38const String_type PAR_EXT = ".par";
39const String_type OPT_EXT = ".opt";
40const String_type NDB_EXT = ".ndb";
41extern const char *TRN_EXT;
42extern const char *TRG_EXT;
43
44const String_type IBD_EXT = ".ibd";
45const String_type index_stats = "innodb_index_stats";
46const String_type index_stats_backup = "innodb_index_stats_backup57";
47const String_type table_stats = "innodb_table_stats";
48const String_type table_stats_backup = "innodb_table_stats_backup57";
49
50/**
51 THD::mem_root is only switched with the given mem_root and switched back
52 on destruction. This does not free any mem_root.
53 */
57
58 public:
61};
62
63/**
64 RAII for handling open and close of event and proc tables.
65*/
66
70
71 public:
74};
75
76/**
77 Class to check the system tables we are using from 5.7 are
78 not corrupted before migrating the information to new DD.
79*/
81 protected:
82 void report_error(uint, const char *fmt, ...) override
83 MY_ATTRIBUTE((format(printf, 3, 4)));
84};
85
86} // namespace upgrade_57
87} // namespace dd
88#endif // DD_UPGRADE__GLOBAL_H_INCLUDED
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
Definition: table.h:603
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:48
Class to check the system tables we are using from 5.7 are not corrupted before migrating the informa...
Definition: global.h:80
void report_error(uint, const char *fmt,...) override
Definition: global.cc:59
RAII for handling open and close of event and proc tables.
Definition: global.h:67
TABLE * m_table
Definition: global.h:69
THD * m_thd
Definition: global.h:68
~System_table_close_guard()
Definition: global.cc:54
System_table_close_guard(THD *thd, TABLE *table)
Definition: global.cc:51
THD::mem_root is only switched with the given mem_root and switched back on destruction.
Definition: global.h:54
MEM_ROOT * m_thd_prev_mem_root
Definition: global.h:56
THD * m_thd
Definition: global.h:55
~Thd_mem_root_guard()
Definition: global.cc:47
Thd_mem_root_guard(THD *thd, MEM_ROOT *mem_root)
Definition: global.cc:41
static MEM_ROOT mem_root
Definition: client_plugin.cc:113
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
const String_type IBD_EXT
Definition: global.h:44
const String_type index_stats_backup
Definition: global.h:46
const String_type index_stats
Definition: global.h:45
const char * TRG_EXT
Definition: global.cc:39
const char * TRN_EXT
Definition: global.cc:38
const String_type table_stats_backup
Definition: global.h:48
const String_type PAR_EXT
Definition: global.h:38
const String_type table_stats
Definition: global.h:47
const String_type ISL_EXT
Definition: global.h:37
const String_type NDB_EXT
Definition: global.h:40
const String_type OPT_EXT
Definition: global.h:39
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
Definition: table.h:1403