Commit c5dd2abf authored by sjaakola's avatar sjaakola Committed by Jan Lindström

Refs MW-245 - logic was wrong in detecting if queries are allowed in non...

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
parent 84d4ab5b
......@@ -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))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment