summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorDaniele Sciascia <daniele.sciascia@galeracluster.com>2021-04-23 11:31:02 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2021-04-28 12:15:30 +0300
commitb1b2689f17c8c722feb2dd6648a866908040e6a7 (patch)
treef78eeb304602eff980ee32b5d53d6d01f2c98344 /sql/table.h
parent206d630ea0c1f89f6c3bd2b8d3d62eafa37a2bc2 (diff)
downloadmariadb-git-bb-10.4-MDEV-25553.tar.gz
MDEV-25553 : Avoid unnecessary rollbacks with SRbb-10.4-MDEV-25553
This patch changes statement rollback for streaming replication. Previously, a statement rollback was turned into full transaction rollback in the case where the transaction had already replicated a fragment. This was introduced in the initial implementation of streaming replication due to the fact that we do not have a mechanism to perform a statement rollback on the applying side. This policy is however overly pessimistic, causing full rollbacks even in cases where a local statement rollback, would not require a statement rollback on the applying side. This happens to be case when the statement itself has not replicated any fragments. So the patch changes the condition that determines if a statement rollback should be turned into a full rollback accordingly. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
Diffstat (limited to 'sql/table.h')
0 files changed, 0 insertions, 0 deletions