Skip to content

Commit

Permalink
mariadb_fix_view need only check view->mariadb_version
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Apr 13, 2015
1 parent 7229b19 commit 29721d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/sql_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,7 @@ int mariadb_fix_view(THD *thd, TABLE_LIST *view, bool wrong_checksum,
LEX_STRING dir, file, path;
DBUG_ENTER("mariadb_fix_view");

if (view->algorithm == VIEW_ALGORITHM_UNDEFINED &&
!wrong_checksum && view->mariadb_version)
if (view->mariadb_version)
DBUG_RETURN(HA_ADMIN_OK);

make_view_filename(&dir, dir_buff, sizeof(dir_buff),
Expand Down

0 comments on commit 29721d7

Please sign in to comment.