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

Method lock_exclusive

sql/log.h:296–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 {}
295 void lock_shared() { mysql_rwlock_rdlock(&LOCK_logger); }
296 void lock_exclusive() { mysql_rwlock_wrlock(&LOCK_logger); }
297 void unlock() { mysql_rwlock_unlock(&LOCK_logger); }
298 bool is_log_table_enabled(uint log_table_type);
299 bool log_command(THD *thd, enum enum_server_command command);

Callers 4

flush_logsMethod · 0.80
flush_general_logMethod · 0.80
fix_logFunction · 0.80
fix_log_outputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected