Skip to content

Commit

Permalink
bugfix: DEBUG_SYNC() invoked with no THD
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
vuvova committed Feb 27, 2017
1 parent 8897b50 commit 924a81a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/debug_sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 924a81a

Please sign in to comment.