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

Function fix_log_output

sql/sys_vars.cc:1299–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1297 return var->save_result.ulonglong_value == 0;
1298}
1299static bool fix_log_output(sys_var *self, THD *thd, enum_var_type type)
1300{
1301 logger.lock_exclusive();
1302 logger.init_general_log(log_output_options);
1303 logger.unlock();
1304 return false;
1305}
1306
1307static const char *log_output_names[] = { "NONE", "FILE", "TABLE", NULL};
1308

Callers

nothing calls this directly

Calls 3

lock_exclusiveMethod · 0.80
init_general_logMethod · 0.80
unlockMethod · 0.45

Tested by

no test coverage detected