MySQL 8.0.39
Source Code Documentation
|
#include <gcs_logging.h>
Static Public Member Functions | |
static int64_t | load_debug_options () |
Atomically load information on debug options. More... | |
static void | store_debug_options (int64_t debug_options) |
Atomically store information on debug options. More... | |
static bool | test_debug_options (const int64_t debug_options) |
Verify whether any of the debug options are defined. More... | |
static int64_t | get_current_debug_options () |
Get the current set of debug options. More... | |
static int64_t | get_current_debug_options (std::string &res_debug_options) |
Get the current set of debug options as an integer value and as a string separated by comma. More... | |
static int64_t | get_valid_debug_options () |
Get the set of valid debug options excluding GCS_DEBUG_NONE and GCS_DEBUG_ALL. More... | |
static bool | is_valid_debug_options (const int64_t debug_options) |
Check whether the set of debug options is valid or not including GCS_DEBUG_NONE and GCS_DEBUG_ALL. More... | |
static bool | is_valid_debug_options (const std::string &debug_options) |
Check whether the set of debug options is valid or not including GCS_DEBUG_NONE and GCS_DEBUG_ALL. More... | |
static bool | get_debug_options (const std::string &debug_options, int64_t &res_debug_options) |
Get the set of debug options passed as parameter as an unsigned integer. More... | |
static bool | get_debug_options (const int64_t debug_options, std::string &res_debug_options) |
Get the set of debug options passed as parameter as a string. More... | |
static unsigned int | get_number_debug_options () |
Get the the number of possible debug options. More... | |
static bool | set_debug_options (const int64_t debug_options) |
Extend the current set of debug options with new debug options expressed as an integer parameter. More... | |
static bool | force_debug_options (const int64_t debug_options) |
Change the current set of debug options by the new debug options expressed as an integer parameter. More... | |
static bool | set_debug_options (const std::string &debug_options) |
Extend the current set of debug options with new debug options expressed as a string. More... | |
static bool | force_debug_options (const std::string &debug_options) |
Changed the current set of debug options by the new debug options expressed as a string. More... | |
static bool | unset_debug_options (const int64_t debug_options) |
Reduce the current set of debug options by disabling the debug options expressed as an integer parameter. More... | |
static bool | unset_debug_options (const std::string &debug_options) |
Reduce the current set of debug options by disabling the debug options expressed as a string. More... | |
Static Private Attributes | |
static std::atomic< std::int64_t > | m_debug_options {GCS_DEBUG_NONE} |
The debug level enabled which is by default GCS_DEBUG_NONE;. More... | |
static const std::string | m_debug_none |
String that represents the GCS_DEBUG_NONE;. More... | |
static const std::string | m_debug_all |
String that represents the GCS_DEBUG_ALL;. More... | |
|
static |
Change the current set of debug options by the new debug options expressed as an integer parameter.
If there is any invalid debug option in the debug_options parameter, true is returned and nothing is changed.
[in] | debug_options | Set of debug options to be defined |
false | if success, true otherwise. |
|
static |
Changed the current set of debug options by the new debug options expressed as a string.
If there is any invalid debug option in the debug_options parameter, true is returned and nothing is changed.
[in] | debug_options | Set of debug options to be defined |
false | if success, true otherwise. |
|
static |
Get the current set of debug options.
|
static |
Get the current set of debug options as an integer value and as a string separated by comma.
[out] | res_debug_options | String containing the result |
|
static |
Get the set of debug options passed as parameter as a string.
If there is any invalid debug option in the debug_options parameter, true is returned.
[in] | debug_options | Set of debug options |
[out] | res_debug_options | String that contains the result |
false | if success, true otherwise. |
|
static |
Get the set of debug options passed as parameter as an unsigned integer.
If there is any invalid debug option in the debug_options parameter, true is returned.
[in] | debug_options | Set of debug options |
[out] | res_debug_options | Unsigned integer that contains the result |
false | if success, true otherwise. |
|
static |
Get the the number of possible debug options.
|
static |
Get the set of valid debug options excluding GCS_DEBUG_NONE and GCS_DEBUG_ALL.
|
static |
Check whether the set of debug options is valid or not including GCS_DEBUG_NONE and GCS_DEBUG_ALL.
[in] | debug_options | Set of debug options |
true | if success, false otherwise |
|
static |
Check whether the set of debug options is valid or not including GCS_DEBUG_NONE and GCS_DEBUG_ALL.
[in] | debug_options | Set of debug options |
false | if success, true otherwise. |
|
inlinestatic |
Atomically load information on debug options.
|
static |
Extend the current set of debug options with new debug options expressed as an integer parameter.
If there is any invalid debug option in the debug_options parameter, true is returned and nothing is changed.
[in] | debug_options | Set of debug options to be added |
false | if success, true otherwise. |
|
static |
Extend the current set of debug options with new debug options expressed as a string.
If there is any invalid debug option in the debug_options parameter, true is returned and nothing is changed.
[in] | debug_options | Set of debug options to be added |
false | if success, true otherwise. |
|
inlinestatic |
Atomically store information on debug options.
|
inlinestatic |
Verify whether any of the debug options are defined.
debug_options | Set of debug options to be verified. |
true | if it is, false otherwise. |
|
static |
Reduce the current set of debug options by disabling the debug options expressed as an integer parameter.
If there is any invalid debug option in the debug_options parameter, true is returned and nothing is changed.
[in] | debug_options | Set of debug options to be disabled |
false | if success, true otherwise. |
|
static |
Reduce the current set of debug options by disabling the debug options expressed as a string.
If there is any invalid debug option in the debug_options parameter, true is returned and nothing is changed.
[in] | debug_options | Set of debug options to be disabled |
false | if success, true otherwise. |
|
staticprivate |
String that represents the GCS_DEBUG_ALL;.
|
staticprivate |
String that represents the GCS_DEBUG_NONE;.
|
staticprivate |
The debug level enabled which is by default GCS_DEBUG_NONE;.