summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSachin Setiya <sachinsetia1001@gmail.com>2016-12-14 15:58:14 +0530
committerSachin Setiya <sachinsetia1001@gmail.com>2016-12-14 15:58:14 +0530
commit95422c445db7db60fca688711d98955e59e009e2 (patch)
treec6bf64f9e2f2b6561964067b41e9f9a472e42809 /sql
parent313a14f79e6de43acd5c2ceffbcc01af2506d800 (diff)
downloadmariadb-git-95422c445db7db60fca688711d98955e59e009e2.tar.gz
Revert " MDEV-11016 wsrep_node_is_ready() check is too strict"
This reverts commit 72fd15f7c31aa3e3705ae1b005a3247a985c5bb3. # Conflicts: # mysql-test/suite/galera/r/galera_var_dirty_reads.result # mysql-test/suite/galera/t/galera_var_dirty_reads.test
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index eb4f7141918..48addaab143 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2388,15 +2388,11 @@ mysql_execute_command(THD *thd)
/*
Bail out if DB snapshot has not been installed. We however,
allow SET and SHOW queries.
- SHOW and SELECT queries (only if wsrep_dirty_reads is set or when it
- does not access any table).
*/
if (thd->variables.wsrep_on && !thd->wsrep_applier && !wsrep_ready &&
lex->sql_command != SQLCOM_SET_OPTION &&
!(thd->variables.wsrep_dirty_reads &&
lex->sql_command == SQLCOM_SELECT) &&
- !(lex->sql_command == SQLCOM_SELECT &&
- !all_tables) &&
!wsrep_is_show_query(lex->sql_command))
{
#if DIRTY_HACK