summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
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