Skip to content

Commit

Permalink
Cleanup - remove unused variables and functions after MDEV-18917
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Mar 15, 2019
1 parent b6dc47a commit cd805a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
1 change: 0 additions & 1 deletion extra/mariabackup/backup_mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ get_mysql_vars(MYSQL *connection)
char *version_comment_var = NULL;
char *innodb_version_var = NULL;
char *have_backup_locks_var = NULL;
char *have_backup_safe_binlog_info_var = NULL;
char *log_bin_var = NULL;
char *lock_wait_timeout_var= NULL;
char *wsrep_on_var = NULL;
Expand Down
30 changes: 0 additions & 30 deletions extra/mariabackup/xtrabackup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,6 @@ xtrabackup_read_metadata(char *filename)
{
FILE *fp;
my_bool r = TRUE;
int t;

fp = fopen(filename,"r");
if(!fp) {
Expand Down Expand Up @@ -5792,35 +5791,6 @@ innodb_free_param()
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
xtrabackup_prepare_func(int argc, char ** argv)
{
Expand Down

0 comments on commit cd805a5

Please sign in to comment.