mirror of
https://github.com/MariaDB/server.git
synced 2025-06-12 01:53:02 +03:00
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
This commit is contained in:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user