diff options
author | Nirbhay Choubey <nirbhay@skysql.com> | 2014-06-19 18:48:20 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@skysql.com> | 2014-06-19 18:48:20 -0400 |
commit | 97779a2ef05d2141d2ade2f72f0900dbd9960751 (patch) | |
tree | 1f2eb2c003247b77d602af4a035a7dd6f7e27aea /sql/wsrep_applier.cc | |
parent | a76a6601ecb63d452c89202d8ca7f11bf2e0194f (diff) | |
download | mariadb-git-97779a2ef05d2141d2ade2f72f0900dbd9960751.tar.gz |
bzr merge -r4091..4101 codership/5.6/
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 05c32da580d..23687e98c32 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -227,6 +227,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; |