24#ifndef DD_UPGRADE__UPGRADE_H_INCLUDED
25#define DD_UPGRADE__UPGRADE_H_INCLUDED
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Class to manage a temporary file to maintain the progress of the upgrade.
Definition: upgrade.h:100
bool open(int flags)
Definition: upgrade.cc:620
bool write(enum_stage status)
Definition: upgrade.cc:645
enum_stage get()
Get status from file.
Definition: upgrade.cc:583
bool create()
Create status file.
Definition: upgrade.cc:609
Upgrade_status()
Definition: upgrade.cc:605
bool exists()
Check if status file exists.
Definition: upgrade.cc:658
bool remove()
Remove upgrade status file.
Definition: upgrade.cc:679
enum_stage
Definition: upgrade.h:103
FILE * m_file
Definition: upgrade.h:177
const String_type m_filename
Definition: upgrade.h:178
enum_stage read()
Definition: upgrade.cc:633
bool close()
Definition: upgrade.cc:664
bool update(enum_stage status)
Update upgrade status.
Definition: upgrade.cc:594
static int flags[50]
Definition: hp_test1.cc:40
const std::string FILE("FILE")
bool fill_dd_and_finalize(THD *thd)
Finalize upgrade to the new data-dictionary by populating Data Dictionary tables with metadata.
Definition: upgrade.cc:1158
bool in_progress()
Check if upgrade is in progress.
Definition: upgrade.cc:114
bool allow_sdi_creation()
Check if creation of SDI file is allowed by upgrade.
Definition: upgrade.cc:118
bool do_pre_checks_and_initialize_dd(THD *thd)
Check if the server is starting on a data directory without dictionary tables or not.
Definition: upgrade.cc:837
bool terminate(THD *thd)
Drop all DD tables in case there is an error while upgrading server.
Definition: upgrade.cc:686
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
required uint32 status
Definition: replication_asynchronous_connection_failover.proto:61