23#ifndef DD_UPGRADE__UPGRADE_H_INCLUDED
24#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:33
Class to manage a temporary file to maintain the progress of the upgrade.
Definition: upgrade.h:99
bool open(int flags)
Definition: upgrade.cc:619
bool write(enum_stage status)
Definition: upgrade.cc:644
enum_stage get()
Get status from file.
Definition: upgrade.cc:582
bool create()
Create status file.
Definition: upgrade.cc:608
Upgrade_status()
Definition: upgrade.cc:604
bool exists()
Check if status file exists.
Definition: upgrade.cc:657
bool remove()
Remove upgrade status file.
Definition: upgrade.cc:678
enum_stage
Definition: upgrade.h:102
FILE * m_file
Definition: upgrade.h:176
const String_type m_filename
Definition: upgrade.h:177
enum_stage read()
Definition: upgrade.cc:632
bool close()
Definition: upgrade.cc:663
bool update(enum_stage status)
Update upgrade status.
Definition: upgrade.cc:593
static int flags[50]
Definition: hp_test1.cc:39
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:1149
bool in_progress()
Check if upgrade is in progress.
Definition: upgrade.cc:113
bool allow_sdi_creation()
Check if creation of SDI file is allowed by upgrade.
Definition: upgrade.cc:117
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:836
bool terminate(THD *thd)
Drop all DD tables in case there is an error while upgrading server.
Definition: upgrade.cc:685
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
required uint32 status
Definition: replication_asynchronous_connection_failover.proto:60