MW-369 - merged fix for FK issue from 5.6-v25 branch
Signed-off-by: Jan Lindström <jan.lindstrom@mariadb.com>
This commit is contained in:
parent
a4bc8db216
commit
48b7245bf2
@ -1082,11 +1082,12 @@ row_ins_foreign_check_on_constraint(
|
|||||||
|
|
||||||
#ifdef WITH_WSREP
|
#ifdef WITH_WSREP
|
||||||
err = wsrep_append_foreign_key(
|
err = wsrep_append_foreign_key(
|
||||||
thr_get_trx(thr),
|
thr_get_trx(thr),
|
||||||
foreign,
|
foreign,
|
||||||
clust_rec,
|
clust_rec,
|
||||||
clust_index,
|
clust_index,
|
||||||
FALSE, FALSE);
|
FALSE,
|
||||||
|
(node) ? TRUE : FALSE);
|
||||||
if (err != DB_SUCCESS) {
|
if (err != DB_SUCCESS) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"WSREP: foreign key append failed: %lu\n", err);
|
"WSREP: foreign key append failed: %lu\n", err);
|
||||||
@ -1247,6 +1248,9 @@ row_ins_check_foreign_constraint(
|
|||||||
ulint* offsets = offsets_;
|
ulint* offsets = offsets_;
|
||||||
rec_offs_init(offsets_);
|
rec_offs_init(offsets_);
|
||||||
|
|
||||||
|
#ifdef WITH_WSREP
|
||||||
|
upd_node= NULL;
|
||||||
|
#endif /* WITH_WSREP */
|
||||||
run_again:
|
run_again:
|
||||||
#ifdef UNIV_SYNC_DEBUG
|
#ifdef UNIV_SYNC_DEBUG
|
||||||
ut_ad(rw_lock_own(&dict_operation_lock, RW_LOCK_SHARED));
|
ut_ad(rw_lock_own(&dict_operation_lock, RW_LOCK_SHARED));
|
||||||
@ -1431,7 +1435,8 @@ run_again:
|
|||||||
foreign,
|
foreign,
|
||||||
rec,
|
rec,
|
||||||
check_index,
|
check_index,
|
||||||
check_ref, TRUE);
|
check_ref,
|
||||||
|
(upd_node) ? TRUE : FALSE);
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
goto end_scan;
|
goto end_scan;
|
||||||
} else if (foreign->type != 0) {
|
} else if (foreign->type != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user