diff options
author | Alexey Yurchenko <alexey.yurchenko@galeracluster.com> | 2019-08-28 07:19:24 +0100 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2019-08-28 09:19:24 +0300 |
commit | 41fa564c88dc86a046d9e0b0a7c0bf4df2944492 (patch) | |
tree | 91713626d72907c4af2f64e63e5c687177a28935 /sql/service_wsrep.cc | |
parent | 53ee9c6cf9ecc7064222a24746cb5e6da3fc1402 (diff) | |
download | mariadb-git-41fa564c88dc86a046d9e0b0a7c0bf4df2944492.tar.gz |
MDEV-17048 Inconsistency voting support (#1373)
* Collect and pass apply error data to provider
* Rollback failed transaction and continue operation if provider returns
SUCCESS
* MTR tests for inconsistency voting
Diffstat (limited to 'sql/service_wsrep.cc')
-rw-r--r-- | sql/service_wsrep.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/service_wsrep.cc b/sql/service_wsrep.cc index 8583897e064..c47ba9d9d37 100644 --- a/sql/service_wsrep.cc +++ b/sql/service_wsrep.cc @@ -270,3 +270,13 @@ extern "C" void wsrep_commit_ordered(THD *thd) thd->wsrep_cs().ordered_commit(); } } + +extern "C" my_bool wsrep_thd_has_ignored_error(const THD *thd) +{ + return thd->wsrep_has_ignored_error; +} + +extern "C" void wsrep_thd_set_ignored_error(THD *thd, my_bool val) +{ + thd->wsrep_has_ignored_error= val; +} |