MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / DbugFlush

Function DbugFlush

dbug/dbug.c:2409–2419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2407 /* and dbug-file isn't readable after a system crash !! */
2408
2409static void DbugFlush(CODE_STATE *cs)
2410{
2411 if (cs->stack->flags & FLUSH_ON_WRITE)
2412 {
2413 (void) fflush(cs->stack->out_file);
2414 if (cs->stack->delay)
2415 (void) Delay(cs->stack->delay);
2416 }
2417 if (!cs->locked)
2418 pthread_mutex_unlock(&THR_LOCK_dbug);
2419} /* DbugFlush */
2420
2421
2422/* For debugging */

Callers 5

_db_enter_Function · 0.85
_db_return_Function · 0.85
_db_doprnt_Function · 0.85
_db_dump_Function · 0.85
DBUGCloseFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected