summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
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