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

Function _db_pop_

dbug/dbug.c:1008–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006 */
1007
1008void _db_pop_()
1009{
1010 struct settings *discard;
1011 uint old_fflags;
1012 CODE_STATE *cs;
1013
1014 get_code_state_or_return;
1015
1016 discard= cs->stack;
1017 if (discard != &init_settings)
1018 {
1019 read_lock_stack(cs);
1020 old_fflags=fflags(cs);
1021 unlock_stack(cs);
1022
1023 cs->stack= discard->next;
1024 FreeState(cs, discard, 1);
1025
1026 read_lock_stack(cs);
1027 FixTraceFlags(old_fflags, cs);
1028 unlock_stack(cs);
1029 }
1030}
1031
1032/*
1033 * FUNCTION

Callers

nothing calls this directly

Calls 4

read_lock_stackFunction · 0.85
unlock_stackFunction · 0.85
FreeStateFunction · 0.85
FixTraceFlagsFunction · 0.85

Tested by

no test coverage detected