mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
perfschema transaction instrumentation related changes
This commit is contained in:
@@ -1990,9 +1990,9 @@ int spider_internal_start_trx(
|
||||
trx->trx_consistent_snapshot ? "TRUE" : "FALSE"));
|
||||
if (!trx->trx_consistent_snapshot)
|
||||
{
|
||||
trans_register_ha(thd, FALSE, spider_hton_ptr);
|
||||
trans_register_ha(thd, FALSE, spider_hton_ptr, NULL);
|
||||
if (thd_test_options(thd, OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))
|
||||
trans_register_ha(thd, TRUE, spider_hton_ptr);
|
||||
trans_register_ha(thd, TRUE, spider_hton_ptr, NULL);
|
||||
}
|
||||
trx->trx_start = TRUE;
|
||||
trx->trx_xa_prepared = FALSE;
|
||||
@@ -3335,8 +3335,8 @@ int spider_start_consistent_snapshot(
|
||||
trx->trx_consistent_snapshot = TRUE;
|
||||
trx->use_consistent_snapshot = TRUE;
|
||||
trx->internal_xa_snapshot = spider_param_internal_xa_snapshot(trx->thd);
|
||||
trans_register_ha(trx->thd, FALSE, spider_hton_ptr);
|
||||
trans_register_ha(trx->thd, TRUE, spider_hton_ptr);
|
||||
trans_register_ha(trx->thd, FALSE, spider_hton_ptr, NULL);
|
||||
trans_register_ha(trx->thd, TRUE, spider_hton_ptr, NULL);
|
||||
if (spider_param_use_all_conns_snapshot(trx->thd))
|
||||
{
|
||||
trx->internal_xa = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user