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

Function _db_set_

dbug/dbug.c:896–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894 */
895
896void _db_set_(const char *control)
897{
898 CODE_STATE *cs;
899 uint old_fflags;
900 get_code_state_or_return;
901
902 read_lock_stack(cs);
903 old_fflags=fflags(cs);
904 unlock_stack(cs);
905
906 if (cs->stack == &init_settings)
907 PushState(cs);
908
909 if (DbugParse(cs, control))
910 {
911 read_lock_stack(cs);
912 FixTraceFlags(old_fflags, cs);
913 unlock_stack(cs);
914 }
915}
916
917/*
918 * FUNCTION

Callers

nothing calls this directly

Calls 5

read_lock_stackFunction · 0.85
unlock_stackFunction · 0.85
PushStateFunction · 0.85
DbugParseFunction · 0.85
FixTraceFlagsFunction · 0.85

Tested by

no test coverage detected