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

Function fl_get_log_status

sql/handler.cc:327–333  ·  view source on GitHub ↗

@brief Dummy function to return log status should be replaced by function which really detect the log status and check that the file is a log of this handler. */

Source from the content-addressed store, hash-verified

325 handler.
326*/
327enum log_status fl_get_log_status(char *log)
328{
329 MY_STAT stat_buff;
330 if (mysql_file_stat(INSTRUMENT_ME, log, &stat_buff, MYF(0)))
331 return HA_LOG_STATUS_INUSE;
332 return HA_LOG_STATUS_NOSUCHLOG;
333}
334
335
336struct fl_buff

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected