Commit cd805a5f authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Cleanup - remove unused variables and functions after MDEV-18917

parent b6dc47a0
...@@ -333,7 +333,6 @@ get_mysql_vars(MYSQL *connection) ...@@ -333,7 +333,6 @@ get_mysql_vars(MYSQL *connection)
char *version_comment_var = NULL; char *version_comment_var = NULL;
char *innodb_version_var = NULL; char *innodb_version_var = NULL;
char *have_backup_locks_var = NULL; char *have_backup_locks_var = NULL;
char *have_backup_safe_binlog_info_var = NULL;
char *log_bin_var = NULL; char *log_bin_var = NULL;
char *lock_wait_timeout_var= NULL; char *lock_wait_timeout_var= NULL;
char *wsrep_on_var = NULL; char *wsrep_on_var = NULL;
......
...@@ -1861,7 +1861,6 @@ xtrabackup_read_metadata(char *filename) ...@@ -1861,7 +1861,6 @@ xtrabackup_read_metadata(char *filename)
{ {
FILE *fp; FILE *fp;
my_bool r = TRUE; my_bool r = TRUE;
int t;
fp = fopen(filename,"r"); fp = fopen(filename,"r");
if(!fp) { if(!fp) {
...@@ -5792,35 +5791,6 @@ innodb_free_param() ...@@ -5792,35 +5791,6 @@ innodb_free_param()
free_tmpdir(&mysql_tmpdir_list); free_tmpdir(&mysql_tmpdir_list);
} }
/**************************************************************************
Store the current binary log coordinates in a specified file.
@return 'false' on error. */
static bool
store_binlog_info(
/*==============*/
const char *filename) /*!< in: output file name */
{
FILE *fp;
if (trx_sys_mysql_bin_log_name[0] == '\0') {
return(true);
}
fp = fopen(filename, "w");
if (!fp) {
msg("mariabackup: failed to open '%s'\n", filename);
return(false);
}
fprintf(fp, "%s\t" UINT64PF "\n",
trx_sys_mysql_bin_log_name, trx_sys_mysql_bin_log_pos);
fclose(fp);
return(true);
}
static void static void
xtrabackup_prepare_func(int argc, char ** argv) xtrabackup_prepare_func(int argc, char ** argv)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment