Merged in change sets 3772-3779 from lp:codership-mysql/5.5

This commit is contained in:
Seppo Jaakola 2012-08-30 12:22:37 +03:00
commit 8e84b9e740
15 changed files with 183 additions and 156 deletions

View file

@ -1423,22 +1423,12 @@ run_again:
if (check_ref) {
err = DB_SUCCESS;
#ifdef WITH_WSREP
if (thr->fk_cascade_depth == 0) {
err = wsrep_append_foreign_key(
thr_get_trx(thr),
foreign,
rec,
check_index,
check_ref, TRUE);
} else {
fprintf(stderr, "WSREP: skipping FK key append\n");
err = wsrep_append_foreign_key(
thr_get_trx(thr),
foreign,
rec,
check_index,
TRUE, TRUE);
}
err = wsrep_append_foreign_key(
thr_get_trx(thr),
foreign,
rec,
check_index,
check_ref, TRUE);
#endif /* WITH_WSREP */
goto end_scan;
} else if (foreign->type != 0) {
@ -1469,14 +1459,6 @@ run_again:
goto end_scan;
}
#ifdef WITH_WSREP_REMOVED
err = wsrep_append_foreign_key(
thr_get_trx(thr),
foreign,
rec,
check_index,
FALSE);
#endif /* WITH_WSREP */
/* row_ins_foreign_check_on_constraint
may have repositioned pcur on a
different block */