mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
References: MDEV-4142
Merged revision 3846 from lp:codership-mysql/5.5-23
This commit is contained in:
@@ -2276,12 +2276,12 @@ row_upd_del_mark_clust_rec(
|
||||
if (err == DB_SUCCESS && referenced) {
|
||||
/* NOTE that the following call loses the position of pcur ! */
|
||||
|
||||
err = wsrep_row_upd_check_foreign_constraints(
|
||||
err = row_upd_check_references_constraints(
|
||||
node, pcur, index->table, index, offsets, thr, mtr);
|
||||
}
|
||||
#ifdef WITH_WSREP
|
||||
if (err == DB_SUCCESS && !referenced) {
|
||||
uint werr = row_upd_check_references_constraints(
|
||||
uint werr = wsrep_row_upd_check_foreign_constraints(
|
||||
node, pcur, index->table, index, offsets, thr, mtr);
|
||||
if (wsrep_debug && werr != DB_SUCCESS)
|
||||
fprintf (stderr, "WSREP: FK check fail: %u", werr);
|
||||
|
||||
@@ -2302,12 +2302,12 @@ row_upd_del_mark_clust_rec(
|
||||
if (err == DB_SUCCESS && referenced) {
|
||||
/* NOTE that the following call loses the position of pcur ! */
|
||||
|
||||
err = wsrep_row_upd_check_foreign_constraints(
|
||||
err = row_upd_check_references_constraints(
|
||||
node, pcur, index->table, index, offsets, thr, mtr);
|
||||
}
|
||||
#ifdef WITH_WSREP
|
||||
if (err == DB_SUCCESS && !referenced) {
|
||||
uint werr = row_upd_check_references_constraints(
|
||||
uint werr = wsrep_row_upd_check_foreign_constraints(
|
||||
node, pcur, index->table, index, offsets, thr, mtr);
|
||||
if (wsrep_debug && werr != DB_SUCCESS)
|
||||
fprintf (stderr, "WSREP: FK check fail: %u", werr);
|
||||
|
||||
Reference in New Issue
Block a user