Post-merge cleanup: Reorganize code for better comprehensibility.
Removes the need of a hack (the jump to label).
This commit is contained in:
parent
e218ac06ed
commit
3c5d9f4272
@ -2162,7 +2162,9 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
break;
|
break;
|
||||||
mysql_log.write(thd,command,NullS);
|
mysql_log.write(thd,command,NullS);
|
||||||
#ifndef DBUG_OFF
|
#ifndef DBUG_OFF
|
||||||
DBUG_EXECUTE_IF("simulate_detached_thread_refresh",
|
bool debug_simulate= FALSE;
|
||||||
|
DBUG_EXECUTE_IF("simulate_detached_thread_refresh", debug_simulate= TRUE;);
|
||||||
|
if (debug_simulate)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Simulate a reload without a attached thread session.
|
Simulate a reload without a attached thread session.
|
||||||
@ -2177,11 +2179,10 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
my_pthread_setspecific_ptr(THR_THD, thd);
|
my_pthread_setspecific_ptr(THR_THD, thd);
|
||||||
if (!res)
|
if (!res)
|
||||||
send_ok(thd);
|
send_ok(thd);
|
||||||
goto end;
|
break;
|
||||||
}
|
}
|
||||||
);
|
|
||||||
#endif
|
#endif
|
||||||
if (!reload_acl_and_cache(thd, options, (TABLE_LIST*) 0, ¬_used))
|
if (!reload_acl_and_cache(thd, options, NULL, ¬_used))
|
||||||
send_ok(thd);
|
send_ok(thd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2319,11 +2320,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Break the switch for DBUG wrapped code. */
|
|
||||||
#ifndef DBUG_OFF
|
|
||||||
end:
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (thd->lock || thd->open_tables || thd->derived_tables ||
|
if (thd->lock || thd->open_tables || thd->derived_tables ||
|
||||||
thd->prelocked_mode)
|
thd->prelocked_mode)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user