![]() |
MySQL 8.0.43
Source Code Documentation
|
Class to manage a temporary file to maintain the progress of the upgrade. More...
#include <upgrade.h>
Public Types | |
| enum class | enum_stage { NONE , STARTED , DICT_SPACE_CREATED , DICT_TABLES_CREATED , DICTIONARY_CREATED , USER_TABLE_UPGRADED , SDI_INFO_UPDATED } |
Public Member Functions | |
| Upgrade_status () | |
| bool | exists () |
| Check if status file exists. More... | |
| bool | create () |
| Create status file. More... | |
| enum_stage | get () |
| Get status from file. More... | |
| bool | update (enum_stage status) |
| Update upgrade status. More... | |
| bool | remove () |
| Remove upgrade status file. More... | |
Private Member Functions | |
| bool | open (int flags) |
| enum_stage | read () |
| bool | write (enum_stage status) |
| bool | close () |
Private Attributes | |
| FILE * | m_file |
| const String_type | m_filename |
Class to manage a temporary file to maintain the progress of the upgrade.
This file will help in error handling for crashes during upgrade. After upgrade is successful, this file will be deleted.
|
strong |
| dd::upgrade_57::Upgrade_status::Upgrade_status | ( | ) |
|
private |
| bool dd::upgrade_57::Upgrade_status::create | ( | ) |
Create status file.
| bool dd::upgrade_57::Upgrade_status::exists | ( | ) |
Check if status file exists.
| Upgrade_status::enum_stage dd::upgrade_57::Upgrade_status::get | ( | ) |
Get status from file.
|
private |
|
private |
| bool dd::upgrade_57::Upgrade_status::remove | ( | ) |
Remove upgrade status file.
| bool dd::upgrade_57::Upgrade_status::update | ( | Upgrade_status::enum_stage | stage | ) |
Update upgrade status.
|
private |
|
private |
|
private |