MySQL 9.1.0
Source Code Documentation
bootstrapper.cc File Reference
#include "sql/dd/impl/bootstrap/bootstrapper.h"
#include <stddef.h>
#include <sys/types.h>
#include <memory>
#include <new>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "my_dbug.h"
#include "my_sys.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/my_loglevel.h"
#include "mysql/strings/m_ctype.h"
#include "mysql_version.h"
#include "mysqld_error.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd.h"
#include "sql/dd/impl/bootstrap/bootstrap_ctx.h"
#include "sql/dd/impl/cache/shared_dictionary_cache.h"
#include "sql/dd/impl/cache/storage_adapter.h"
#include "sql/dd/impl/dictionary_impl.h"
#include "sql/dd/impl/raw/object_keys.h"
#include "sql/dd/impl/sdi.h"
#include "sql/dd/impl/tables/character_sets.h"
#include "sql/dd/impl/tables/collations.h"
#include "sql/dd/impl/tables/dd_properties.h"
#include "sql/dd/impl/tables/tables.h"
#include "sql/dd/impl/types/schema_impl.h"
#include "sql/dd/impl/types/table_impl.h"
#include "sql/dd/impl/types/tablespace_impl.h"
#include "sql/dd/impl/upgrade/dd.h"
#include "sql/dd/impl/upgrade/server.h"
#include "sql/dd/impl/utils.h"
#include "sql/dd/info_schema/metadata.h"
#include "sql/dd/object_id.h"
#include "sql/dd/types/abstract_table.h"
#include "sql/dd/types/object_table.h"
#include "sql/dd/types/object_table_definition.h"
#include "sql/dd/types/table.h"
#include "sql/dd/types/tablespace.h"
#include "sql/dd/types/tablespace_file.h"
#include "sql/dd/upgrade/server.h"
#include "sql/handler.h"
#include "sql/mdl.h"
#include "sql/mysqld.h"
#include "sql/sd_notify.h"
#include "sql/thd_raii.h"
#include "storage/perfschema/pfs_dd_version.h"

Namespaces

namespace  anonymous_namespace{bootstrapper.cc}
 
namespace  dd
 The version of the current data dictionary table definitions.
 
namespace  dd::bootstrap
 

Functions

bool anonymous_namespace{bootstrapper.cc}::DDSE_dict_recover (THD *thd, dict_recovery_mode_t dict_recovery_mode, uint version)
 
bool anonymous_namespace{bootstrapper.cc}::update_system_tables (THD *thd)
 
bool anonymous_namespace{bootstrapper.cc}::create_target_table (THD *thd, const Object_table *object_table)
 
bool anonymous_namespace{bootstrapper.cc}::create_actual_table (THD *thd, const Object_table *object_table)
 
bool anonymous_namespace{bootstrapper.cc}::acquire_exclusive_mdl (THD *thd)
 
bool anonymous_namespace{bootstrapper.cc}::flush_meta_data (THD *thd)
 
bool anonymous_namespace{bootstrapper.cc}::populate_tables (THD *thd)
 
bool anonymous_namespace{bootstrapper.cc}::repopulate_charsets_and_collations (THD *thd)
 
bool anonymous_namespace{bootstrapper.cc}::verify_contents (THD *thd)
 
bool dd::bootstrap::DDSE_dict_init (THD *thd, dict_init_mode_t dict_init_mode, uint version)
 Initialize InnoDB for. More...
 
bool dd::bootstrap::initialize_dictionary (THD *thd, Dictionary_impl *d)
 Create mysql schema. More...
 
bool dd::bootstrap::initialize (THD *thd)
 Initialize the dictionary while starting the server for the first time. More...
 
bool dd::bootstrap::restart_dictionary (THD *thd)
 Initialize the dictionary while restarting the server. More...
 
void dd::bootstrap::recover_innodb_upon_upgrade (THD *thd)
 This function is used in case of crash during upgrade. More...
 
bool dd::bootstrap::setup_dd_objects_and_collations (THD *thd)
 Initialization and verification of dictionary objects after upgrade, similar to what is done after normal server restart. More...
 
void dd::store_predefined_tablespace_metadata (THD *thd)
 This function creates the meta data of the predefined tablespaces. More...
 
bool dd::create_dd_schema (THD *thd)
 Executes SQL queries to create and use the dictionary schema. More...
 
bool dd::getprop (THD *thd, const char *key, uint *value, bool silent=false, loglevel level=ERROR_LEVEL)
 
bool dd::getprop (THD *thd, const char *key, String_type *value, bool silent=false, loglevel level=ERROR_LEVEL)
 
bool dd::setprop (THD *thd, const char *key, const uint value, bool silent=false)
 
bool dd::setprop (THD *thd, const char *key, const String_type &value, bool silent=false)
 
bool dd::initialize_dd_properties (THD *thd)
 During –initialize, we create the dd_properties table. More...
 
bool dd::is_non_inert_dd_or_ddse_table (System_tables::Types table_type)
 Predicate to check if a table type is a non-inert DD or a DDSE table. More...
 
bool dd::create_tables (THD *thd, const std::set< String_type > *create_set)
 Execute SQL statements to create the DD tables. More...
 
bool dd::sync_meta_data (THD *thd)
 Acquire the DD schema, tablespace and table objects. More...
 
bool dd::update_properties (THD *thd, const std::set< String_type > *create_set, const std::set< String_type > *remove_set, const String_type &target_table_schema_name)
 Update properties in the DD_properties table. More...
 
bool dd::update_versions (THD *thd)
 Updates the DD Version in the DD_properties table to the current version. More...