![]() |
MySQL 9.0.0
Source Code Documentation
|
Option tracker usage marker. More...
#include <mysql_option_tracker.h>
Public Attributes | |
mysql_service_status_t(* | set )(const char *option, const char *usage_data_json) |
Set usage data. More... | |
mysql_service_status_t(* | get )(const char *option, char *usage_data, size_t sizeof_usage_data) |
Get usage data. More... | |
Option tracker usage marker.
Sets usage data for a given option. Internally stores into the system table.
It gets the value for cluster_id from the system variable group_replication_group_name (defined by the GR plugin). If the plugin is not installed it uses empty string.
It gets the value for server_id from the system variable server_uuid.
mysql_service_status_t(* s_mysql_mysql_option_tracker_usage::get) (const char *option, char *usage_data, size_t sizeof_usage_data) |
Get usage data.
Reads the persisted state. Stores a 0-terminated UTF-8 data into the supplied buffer. If the data to be stored are too long for the buffer the function fails.
Reading is done in a separate auto-commit transaction.
option | The name of the option, US ASCII | |
[out] | usage_data | A buffer to return the UTF-8 data in. |
sizeof_usage_data | The size of the usage_data_buffer in bytes. otherwise. |
false | success |
true | failure |
mysql_service_status_t(* s_mysql_mysql_option_tracker_usage::set) (const char *option, const char *usage_data_json) |
Set usage data.
Sets the persisted state
option | The name of the option, US ASCII |
usage_data_json | Usage data, JSON, zero terminated UTF-8 |
false | success |
true | failure |