| 276 | } |
| 277 | |
| 278 | static int wsrep_provider_plugin_init(void *p) |
| 279 | { |
| 280 | WSREP_DEBUG("wsrep_provider_plugin_init()"); |
| 281 | |
| 282 | if (!WSREP_ON) |
| 283 | { |
| 284 | sql_print_information("Plugin '%s' is disabled.", "wsrep-provider"); |
| 285 | return 0; |
| 286 | } |
| 287 | |
| 288 | provider_plugin_enabled= true; |
| 289 | |
| 290 | // When plugin-wsrep-provider is enabled we set |
| 291 | // wsrep_provider_options parameter as READ_ONLY |
| 292 | sys_var *my_var= find_sys_var(current_thd, "wsrep_provider_options"); |
| 293 | int flags= my_var->get_flags(); |
| 294 | my_var->update_flags(flags |= (int)sys_var::READONLY); |
| 295 | return 0; |
| 296 | } |
| 297 | |
| 298 | static int wsrep_provider_plugin_deinit(void *p) |
| 299 | { |
nothing calls this directly
no test coverage detected