MySQL 9.1.0
Source Code Documentation
s_mysql_mysql_option_tracker_usage Struct Reference

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...
 

Detailed Description

Option tracker usage marker.

Sets usage data for a given option. Internally stores into the system table.

Cluster ID is set to empty.

It gets the value for server_id from the system variable server_uuid.

Member Data Documentation

◆ get

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.

Parameters
optionThe name of the option, US ASCII
[out]usage_dataA buffer to return the UTF-8 data in.
sizeof_usage_dataThe size of the usage_data_buffer in bytes. otherwise.
Return values
falsesuccess
truefailure

◆ set

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

Parameters
optionThe name of the option, US ASCII
usage_data_jsonUsage data, JSON, zero terminated UTF-8
Return values
falsesuccess
truefailure

The documentation for this struct was generated from the following file: