Additional fix for DEBUG_SYNC which failed for some rpl-tests,
due to DBUG_ASSERT. (added in bug#50561) sql/sql_base.cc: DEBUG_SYNC asserts that thd->debug_sync_control is set.
This commit is contained in:
parent
5196beed02
commit
ca086708bc
@ -1244,7 +1244,12 @@ void close_thread_tables(THD *thd)
|
|||||||
table->s->table_name.str, (long) table));
|
table->s->table_name.str, (long) table));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(ENABLED_DEBUG_SYNC)
|
||||||
|
/* debug_sync may not be initialized for some slave threads */
|
||||||
|
if (thd->debug_sync_control)
|
||||||
DEBUG_SYNC(thd, "before_close_thread_tables");
|
DEBUG_SYNC(thd, "before_close_thread_tables");
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
We are assuming here that thd->derived_tables contains ONLY derived
|
We are assuming here that thd->derived_tables contains ONLY derived
|
||||||
tables for this substatement. i.e. instead of approach which uses
|
tables for this substatement. i.e. instead of approach which uses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user