summaryrefslogtreecommitdiff
path: root/sql/sql_admin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_admin.cc')
-rw-r--r--sql/sql_admin.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc
index b626200d297..f692afb1440 100644
--- a/sql/sql_admin.cc
+++ b/sql/sql_admin.cc
@@ -466,16 +466,17 @@ static bool wsrep_toi_replication(THD *thd, TABLE_LIST *tables)
/* now TOI replication, with no locks held */
if (keys.empty())
{
- WSREP_TO_ISOLATION_BEGIN_WRTCHK(NULL, NULL, tables);
- } else {
- WSREP_TO_ISOLATION_BEGIN_FK_TABLES(NULL, NULL, tables, &keys) {
+ if (!thd->lex->no_write_to_binlog &&
+ wsrep_to_isolation_begin(thd, NULL, NULL, tables))
+ return true;
+ }
+ else
+ {
+ if (!thd->lex->no_write_to_binlog &&
+ wsrep_to_isolation_begin(thd, NULL, NULL, tables, NULL, &keys))
return true;
- }
}
return false;
-
- wsrep_error_label:
- return true;
}
#endif /* WITH_WSREP */