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

Function post_init_callback

sql/sql_plugin.cc:4566–4587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4564*/
4565
4566my_bool post_init_callback(THD *thd, void *)
4567{
4568 DBUG_ASSERT(!current_thd);
4569 if (thd->wsrep_applier)
4570 {
4571 // Save options_bits as it will get overwritten in
4572 // plugin_thdvar_init() (verified)
4573 ulonglong option_bits_saved= thd->variables.option_bits;
4574
4575 set_current_thd(thd);
4576 plugin_thdvar_init(thd);
4577
4578 // Restore proper transaction read-only context
4579 thd->variables.tx_read_only= false;
4580 // Restore option_bits
4581 thd->variables.option_bits= option_bits_saved;
4582 // Restore proper default isolation level for appliers
4583 thd->variables.tx_isolation= ISO_READ_COMMITTED;
4584 }
4585 set_current_thd(0);
4586 return 0;
4587}
4588
4589
4590void wsrep_plugins_post_init()

Callers

nothing calls this directly

Calls 2

set_current_thdFunction · 0.85
plugin_thdvar_initFunction · 0.85

Tested by

no test coverage detected