Skip to content

Commit 29721d7

Browse files
committed
mariadb_fix_view need only check view->mariadb_version
1 parent 7229b19 commit 29721d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/sql_view.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,7 @@ int mariadb_fix_view(THD *thd, TABLE_LIST *view, bool wrong_checksum,
818818
LEX_STRING dir, file, path;
819819
DBUG_ENTER("mariadb_fix_view");
820820

821-
if (view->algorithm == VIEW_ALGORITHM_UNDEFINED &&
822-
!wrong_checksum && view->mariadb_version)
821+
if (view->mariadb_version)
823822
DBUG_RETURN(HA_ADMIN_OK);
824823

825824
make_view_filename(&dir, dir_buff, sizeof(dir_buff),

0 commit comments

Comments
 (0)