Skip to content

Commit d10a074

Browse files
author
Marko Mäkelä
committed
Use DBUG_EXECUTE_IF on DEBUG_SYNC timeout, instead of DBUG_ASSERT.
1 parent 1c8c6ce commit d10a074

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql/debug_sync.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ static void debug_sync_execute(THD *thd, st_debug_sync_action *action)
17941794
push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
17951795
ER_DEBUG_SYNC_TIMEOUT, ER(ER_DEBUG_SYNC_TIMEOUT));
17961796
thd->abort_on_warning= save_abort_on_warning;
1797-
DBUG_ASSERT(0);
1797+
DBUG_EXECUTE_IF("debug_sync_abort_on_timeout", DBUG_ABORT(););
17981798
break;
17991799
}
18001800
error= 0;

0 commit comments

Comments
 (0)