Skip to content
Permalink
Browse files
Refs MW-245 - logic was wrong in detecting if queries are allowed in …
…non primary node. it allowed select with no table list to execute even if dirty reads was not specified
  • Loading branch information
sjaakola authored and Jan Lindström committed Mar 20, 2018
1 parent 84d4ab5 commit c5dd2ab
Showing 1 changed file with 2 additions and 1 deletion.
@@ -2686,7 +2686,8 @@ mysql_execute_command(THD *thd)
!(wsrep_ready && wsrep_reject_queries == WSREP_REJECT_NONE) &&
!(thd->variables.wsrep_dirty_reads &&
(sql_command_flags[lex->sql_command] & CF_CHANGES_DATA) == 0) &&
!wsrep_tables_accessible_when_detached(all_tables) &&
!(thd->variables.wsrep_dirty_reads &&
wsrep_tables_accessible_when_detached(all_tables)) &&
lex->sql_command != SQLCOM_SET_OPTION &&
!wsrep_is_show_query(lex->sql_command))
{

0 comments on commit c5dd2ab

Please sign in to comment.