MCPcopy Create free account
hub / github.com/Tencent/phxsql / show_binlog_vars

Function show_binlog_vars

phx_percona/percona/sql/binlog.cc:9799–9811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9797#endif /* !defined(MYSQL_CLIENT) */
9798
9799static int show_binlog_vars(THD *thd, SHOW_VAR *var, char *buff)
9800{
9801 if (mysql_bin_log.is_open())
9802 mysql_bin_log.set_status_variables(thd);
9803 else
9804 {
9805 binlog_snapshot_file[0]= '\0';
9806 binlog_snapshot_position= 0;
9807 }
9808 var->type= SHOW_ARRAY;
9809 var->value= (char *)&binlog_status_vars_detail;
9810 return 0;
9811}
9812
9813static SHOW_VAR binlog_status_vars_top[]= {
9814 {"Binlog", (char *) &show_binlog_vars, SHOW_FUNC},

Callers

nothing calls this directly

Calls 1

set_status_variablesMethod · 0.80

Tested by

no test coverage detected