Commit 924a81a5 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: DEBUG_SYNC() invoked with no THD

While DEBUG_SYNC doesn't make sense without a valid THD, it might
be put in the code that's invoked both within and outside of a
THD context (e.g. in maria_open(), there is no THD during recovery).
parent 8897b50d
......@@ -1520,6 +1520,8 @@ static void debug_sync(THD *thd, const char *sync_point_name, size_t name_len)
{
if (!thd)
thd= current_thd;
if (!thd)
return;
st_debug_sync_control *ds_control= thd->debug_sync_control;
st_debug_sync_action *action;
......
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