Skip to content

Commit

Permalink
MW-369 FK fixes
Browse files Browse the repository at this point in the history
Skipping wsrep extra FK check for applier and replayer

Signed-off-by: Jan Lindström <jan.lindstrom@mariadb.com>
  • Loading branch information
sjaakola authored and Jan Lindström committed Jul 20, 2017
1 parent 6326f0e commit 519e432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/innobase/row/row0upd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,9 @@ row_upd_sec_index_entry(
index, offsets, thr, &mtr);
}
#ifdef WITH_WSREP
if (err == DB_SUCCESS && !referenced &&
if (wsrep_on(trx->mysql_thd) &&
!wsrep_thd_is_BF(trx->mysql_thd, FALSE) &&
err == DB_SUCCESS && !referenced &&
!(parent && que_node_get_type(parent) ==
QUE_NODE_UPDATE &&
((upd_node_t*)parent)->cascade_node == node) &&
Expand Down

0 comments on commit 519e432

Please sign in to comment.