| 4564 | */ |
| 4565 | |
| 4566 | my_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 | |
| 4590 | void wsrep_plugins_post_init() |
nothing calls this directly
no test coverage detected