summaryrefslogtreecommitdiff
path: root/include/mysql/plugin.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-10-14 15:28:16 +0200
committerunknown <knielsen@knielsen-hq.org>2013-10-14 15:28:16 +0200
commit2842f6b5dc254c82aa3dc976cd5bd3645dc82a60 (patch)
treeadefb3cd2b2e5e1f41652d12cc597929f55f80d0 /include/mysql/plugin.h
parent2e100cc5a493b6a0f6f907e0483a734c7fee2087 (diff)
downloadmariadb-git-2842f6b5dc254c82aa3dc976cd5bd3645dc82a60.tar.gz
MDEV-4506: Parallel replication: error handling.
Add an error code to the wait_for_commit facility. Now, when a transaction fails, it can signal the error to any subsequent transaction that is waiting for it to commit. The waiting transactions then receive the error code back from wait_for_prior_commit() and can handle the error appropriately. Also fix one race that could cause crash if @@slave_parallel_threads were changed several times quickly in succession.
Diffstat (limited to 'include/mysql/plugin.h')
-rw-r--r--include/mysql/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index ab72a9d106b..9ac63f08f73 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -716,7 +716,7 @@ void thd_set_ha_data(MYSQL_THD thd, const struct handlerton *hton,
thd_wakeup_subsequent_commits() is only needed when no transaction
coordinator is used, meaning a single storage engine and no binary log.
*/
-void thd_wakeup_subsequent_commits(MYSQL_THD thd);
+void thd_wakeup_subsequent_commits(MYSQL_THD thd, int wakeup_error);
#ifdef __cplusplus
}