Skip to content

Commit c558f12

Browse files
author
Mikael Ronstrom
committed
Added comment on how to expand the use of the debug sync framework for scheduler
1 parent d0ed0fb commit c558f12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/debug_sync.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,10 @@ static void debug_sync_execute(THD *thd, st_debug_sync_action *action)
17451745
We don't use enter_cond()/exit_cond(). They do not save old
17461746
mutex and cond. This would prohibit the use of DEBUG_SYNC
17471747
between other places of enter_cond() and exit_cond().
1748+
1749+
We need to check for existence of thd->mysys_var to also make
1750+
it possible to use DEBUG_SYNC framework in scheduler when this
1751+
variable has been set to NULL.
17481752
*/
17491753
if (thd->mysys_var)
17501754
{

0 commit comments

Comments
 (0)