| 9797 | #endif /* !defined(MYSQL_CLIENT) */ |
| 9798 | |
| 9799 | static 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 | |
| 9813 | static SHOW_VAR binlog_status_vars_top[]= { |
| 9814 | {"Binlog", (char *) &show_binlog_vars, SHOW_FUNC}, |
nothing calls this directly
no test coverage detected