summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2020-11-03 10:44:26 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2021-02-25 07:47:51 +0200
commit27d66d644cf2ebe9201e0362f2050036cce2908a (patch)
tree8b1dc6ca683c0c0c5cb04d01de7043276f2bcff5 /sql/sp_head.cc
parent74281fe1fb0faf444aec3744b90995156f9f58f9 (diff)
downloadmariadb-git-27d66d644cf2ebe9201e0362f2050036cce2908a.tar.gz
MENT-411 : Implement wsrep_replicate_aria
Introduced two new wsrep_mode options * REPLICATE_MYISAM * REPLICATE_ARIA Depracated wsrep_replicate_myisam parameter and we use wsrep_mode = REPLICATE_MYISAM instead. This required small refactoring of wsrep_check_mode_after_open_table so that both MyISAM and Aria are handled on required DML cases. Similarly, added Aria to wsrep_should_replicate_ddl to handle DDL for Aria tables using TOI. Added test cases and improved MyISAM testing. Changed use of wsrep_replicate_myisam to wsrep_mode = REPLICATE_MYISAM
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 513e7207b7e..ec5b2d0e832 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -1473,7 +1473,9 @@ sp_head::execute(THD *thd, bool merge_da_on_success)
WSREP_DEBUG("MUST_REPLAY set after SP, err_status %d trx state: %d",
err_status, thd->wsrep_trx().state());
}
- (void) wsrep_after_statement(thd);
+
+ if (wsrep_thd_is_local(thd))
+ (void) wsrep_after_statement(thd);
/*
Reset the return code to zero if the transaction was