![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Option tracker registration and deregistration services. More...
#include <connection_control_pfs.h>
Public Attributes | |
| void(* | define )(const char *userhost) | 
| Define an option.  More... | |
| mysql_service_status_t(* | undefine )(const char *userhost) | 
| Undefine an option.  More... | |
Option tracker registration and deregistration services.
This is a service that will allow registering an option. Each option has a name. The name is UTF8mb4 and is unique in the list. Manipulating the option list is an "expesive" operation since there is a global lock involved.
Each code container (a component or a plugin) should register its options during its initialization and should unregister them during its deinitialization.
| void(* s_mysql_mysql_failed_attempts_tracker::define) (const char *userhost) | 
Define an option.
Adds an option definition.
If another option of the same name exists, the definition fails
| option | The name of the option, UTF8mb4. Must be unique. | 
| container | The container name. UTF8mb4 Please prefix with "plugin_" for plugins. | 
| is_enabled | non-0 if the option is marked as enabled, 0 otherwise | 
| false | success | 
| true | failure | 
| mysql_service_status_t(* s_mysql_mysql_failed_attempts_tracker::undefine) (const char *userhost) | 
Undefine an option.
Fails if no option is defined with the same name
| option | The name of the option, US ASCII | 
| false | success | 
| true | failure |