MySQL 8.0.39
Source Code Documentation
upgrade.cc File Reference
#include "sql/dd/upgrade_57/upgrade.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "lex_string.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_dir.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_loglevel.h"
#include "my_sys.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/plugin.h"
#include "mysql/psi/mysql_file.h"
#include "mysql/udf_registration_types.h"
#include "mysql_version.h"
#include "mysqld_error.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd_schema.h"
#include "sql/dd/dd_tablespace.h"
#include "sql/dd/impl/bootstrap/bootstrap_ctx.h"
#include "sql/dd/impl/bootstrap/bootstrapper.h"
#include "sql/dd/impl/dictionary_impl.h"
#include "sql/dd/impl/sdi.h"
#include "sql/dd/impl/system_registry.h"
#include "sql/dd/impl/upgrade/server.h"
#include "sql/dd/impl/utils.h"
#include "sql/dd/info_schema/metadata.h"
#include "sql/dd/performance_schema/init.h"
#include "sql/dd/sdi_file.h"
#include "sql/dd/types/object_table.h"
#include "sql/dd/types/table.h"
#include "sql/dd/types/tablespace.h"
#include "sql/dd/upgrade/server.h"
#include "sql/dd/upgrade_57/event.h"
#include "sql/dd/upgrade_57/global.h"
#include "sql/dd/upgrade_57/routine.h"
#include "sql/dd/upgrade_57/schema.h"
#include "sql/dd/upgrade_57/table.h"
#include "sql/error_handler.h"
#include "sql/handler.h"
#include "sql/lock.h"
#include "sql/log.h"
#include "sql/mysqld.h"
#include "sql/sd_notify.h"
#include "sql/sql_class.h"
#include "sql/sql_list.h"
#include "sql/sql_plugin.h"
#include "sql/sql_plugin_ref.h"
#include "sql/sql_prepare.h"
#include "sql/sql_table.h"
#include "sql/stateless_allocator.h"
#include "sql/strfunc.h"
#include "sql/table.h"
#include "sql/thd_raii.h"
#include "sql/transaction.h"

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 
namespace  dd::upgrade_57
 

Functions

bool dd::upgrade_57::in_progress ()
 Check if upgrade is in progress. More...
 
void dd::upgrade_57::set_in_progress (bool param)
 
bool dd::upgrade_57::allow_sdi_creation ()
 Check if creation of SDI file is allowed by upgrade. More...
 
void dd::upgrade_57::set_allow_sdi_creation (bool param)
 
static bool dd::upgrade_57::check_file_extension (const String_type &extn)
 Check if it is a file extension which should be moved to backup_metadata_57 folder upgrade upgrade is successful. More...
 
static void dd::upgrade_57::rename_stats_tables ()
 Rename stats tables. More...
 
static bool dd::upgrade_57::ha_finish_upgrade (THD *thd, plugin_ref plugin, void *failed_upgrade)
 Cleanup inside SE after upgrade for one SE. More...
 
bool dd::upgrade_57::ha_finish_upgrade (THD *thd, bool failed_upgrade)
 
bool dd::upgrade_57::finalize_upgrade (THD *thd)
 In case of successful upgrade, this function deletes all .frm, .TRG, .TRG, .par, .opt, .isl files from all databases. More...
 
bool dd::upgrade_57::check_for_dd_tables ()
 Function to scan mysql schema to check if any tables exist with the same name as DD tables to be created. More...
 
void dd::upgrade_57::rename_back_stats_tables (THD *thd)
 Rename back .ibd files for innodb stats table. More...
 
static void dd::upgrade_57::drop_sdi_files ()
 Drop all .SDI files created during upgrade. More...
 
bool dd::upgrade_57::add_sdi_info (THD *thd)
 Create SDI information for all tablespaces and tables. More...
 
bool dd::upgrade_57::terminate (THD *thd)
 Drop all DD tables in case there is an error while upgrading server. More...
 
static bool dd::upgrade_57::ha_migrate_tablespaces (THD *thd, plugin_ref plugin, void *)
 create data dictionary entry for tablespaces for one SE. More...
 
static bool dd::upgrade_57::ha_migrate_tablespaces (THD *thd)
 create data dictionary entry for tablespaces for one SE. More...
 
static bool dd::upgrade_57::migrate_stats (THD *thd)
 Migrate statistics from 5.7 stats tables. More...
 
static bool dd::upgrade_57::restart_dictionary (THD *thd)
 
static bool dd::upgrade_57::upgrade_logs (THD *thd, plugin_ref plugin, void *)
 Upgrade logs inside one SE. More...
 
static bool dd::upgrade_57::ha_upgrade_engine_logs (THD *thd)
 Upgrade logs inside all SE. More...
 
bool dd::upgrade_57::do_pre_checks_and_initialize_dd (THD *thd)
 Check if the server is starting on a data directory without dictionary tables or not. More...
 
bool dd::upgrade_57::fill_dd_and_finalize (THD *thd)
 Finalize upgrade to the new data-dictionary by populating Data Dictionary tables with metadata. More...
 

Variables

static bool dd::upgrade_57::dd_upgrade_flag = false
 
static bool dd::upgrade_57::create_sdi_flag = true