MCPcopy Create free account
hub / github.com/MariaDB/server / wsrep_provider_plugin_init

Function wsrep_provider_plugin_init

sql/wsrep_plugin.cc:278–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static 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
298static int wsrep_provider_plugin_deinit(void *p)
299{

Callers

nothing calls this directly

Calls 4

find_sys_varFunction · 0.85
sql_print_informationFunction · 0.70
get_flagsMethod · 0.45
update_flagsMethod · 0.45

Tested by

no test coverage detected