Commit 8a827d53 authored by Daniel Black's avatar Daniel Black

avoid calling runctiosn in DBUG_RETURN

parent 29721d7d
...@@ -2077,9 +2077,11 @@ int view_repair(THD *thd, TABLE_LIST *view, HA_CHECK_OPT *check_opt) ...@@ -2077,9 +2077,11 @@ int view_repair(THD *thd, TABLE_LIST *view, HA_CHECK_OPT *check_opt)
((check_opt->sql_flags & TT_FROM_MYSQL) && ((check_opt->sql_flags & TT_FROM_MYSQL) &&
(!view->mariadb_version)); (!view->mariadb_version));
bool wrong_checksum= view_checksum(thd, view); bool wrong_checksum= view_checksum(thd, view);
int ret;
if (wrong_checksum || swap_alg) if (wrong_checksum || swap_alg)
{ {
DBUG_RETURN(mariadb_fix_view(thd, view, wrong_checksum, swap_alg)); ret= mariadb_fix_view(thd, view, wrong_checksum, swap_alg);
DBUG_RETURN(ret);
} }
DBUG_RETURN(HA_ADMIN_OK); DBUG_RETURN(HA_ADMIN_OK);
} }
......
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