Skip to content

Commit

Permalink
SQL: main.flush_read_lock fix [#302]
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and midenok committed Nov 17, 2017
1 parent f9714ef commit ecf259c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/sql_show.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4907,6 +4907,9 @@ static bool get_all_archive_tables(THD *thd,
if (thd->variables.vers_hide == VERS_HIDE_NEVER)
return false;

if (thd->variables.vers_alter_history != VERS_ALTER_HISTORY_SURVIVE)
return false;

Dynamic_array<LEX_CSTRING *> all_db;
LOOKUP_FIELD_VALUES lookup_field_values= {
{C_STRING_WITH_LEN("%")}, {NULL, 0}, true, false};
Expand Down

0 comments on commit ecf259c

Please sign in to comment.