![]() |
MySQL 26.7.0
Source Code Documentation
|
Decide whether a stored server version may move to a target server version. More...
#include <server_version_transition.h>
Public Member Functions | |
| Server_version_transition (My_server_version source, My_server_version target) | |
| Result | evaluate () const |
| bool | check_and_report () const |
| Emit the matching error-log message if evaluate() rejects the transition. More... | |
Private Attributes | |
| My_server_version | m_source |
| My_server_version | m_target |
Decide whether a stored server version may move to a target server version.
This class is intentionally independent of DD_properties and THD. Tests can construct it directly from persisted source-version details and target metadata, inspect the pure Result from evaluate(), and leave error-log side-effects to check_and_report().
|
strong |
| dd::bootstrap::Server_version_transition::Server_version_transition | ( | My_server_version | source, |
| My_server_version | target | ||
| ) |
| bool dd::bootstrap::Server_version_transition::check_and_report | ( | ) | const |
Emit the matching error-log message if evaluate() rejects the transition.
| false | Transition accepted. |
| true | Transition rejected and error reported. |
| Server_version_transition::Result dd::bootstrap::Server_version_transition::evaluate | ( | ) | const |
|
private |
|
private |