diff options
author | Nirbhay Choubey <nirbhay@skysql.com> | 2014-08-06 15:45:53 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@skysql.com> | 2014-08-06 15:45:53 -0400 |
commit | 4788577c203402ba228f0dbf874ca2becb6b8fa1 (patch) | |
tree | fdd37f69b474a6505b59317501b65502e85db900 /sql/wsrep_applier.cc | |
parent | ec91eea8dbae4276ff6e31a0d80c0b523f88ed88 (diff) | |
download | mariadb-git-4788577c203402ba228f0dbf874ca2becb6b8fa1.tar.gz |
bzr merge -r3997..4010 codership-mysql/5.5
Diffstat (limited to 'sql/wsrep_applier.cc')
-rw-r--r-- | sql/wsrep_applier.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/wsrep_applier.cc b/sql/wsrep_applier.cc index 8e9e8b5ca8d..6701d3fd28a 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -207,6 +207,17 @@ wsrep_cb_status_t wsrep_apply_cb(void* const ctx, thd_proc_info(thd, "applying write set"); #endif /* WSREP_PROC_INFO */ + /* tune FK and UK checking policy */ + if (wsrep_slave_UK_checks == FALSE) + thd->variables.option_bits|= OPTION_RELAXED_UNIQUE_CHECKS; + else + thd->variables.option_bits&= ~OPTION_RELAXED_UNIQUE_CHECKS; + + if (wsrep_slave_FK_checks == FALSE) + thd->variables.option_bits|= OPTION_NO_FOREIGN_KEY_CHECKS; + else + thd->variables.option_bits&= ~OPTION_NO_FOREIGN_KEY_CHECKS; + if (flags & WSREP_FLAG_ISOLATION) { thd->wsrep_apply_toi= true; |