~gl-az/percona-xtrabackup/2.1-bug1007446

« back to all changes in this revision

Viewing changes to innobackupex

  • Committer: George O. Lorch III
  • Date: 2012-12-26 23:52:42 UTC
  • mfrom: (391.53.17 xb-2.0-lp1007446)
  • Revision ID: george.lorch@percona.com-20121226235242-9ycdmt3p6uv1u221
Fixed https://bugs.launchpad.net/percona-xtrabackup/+bug/1007446
innobackupex should remove stale xtrabackup_suspended file on start

In innobackupex init, added test for existance of suspend file, then report and attempt to remove if the file exists.

Created new test case bug1007466.sh that creates a fake suspend file before launching innobackupex and tests for warning in output file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1621
1621
    } elsif ($option_copy_back || $option_move_back) {
1622
1622
        #$backup_config_file = $backup_dir . '/backup-my.cnf';
1623
1623
        #read_config_file($backup_config_file, \%backup_config);
1624
 
    }         
 
1624
    }
 
1625
 
 
1626
    if ( -e "$suspend_file" ) {
 
1627
        print STDERR "WARNING : A left over instance of suspend file '$suspend_file' was found.\n";
 
1628
        unlink $suspend_file || Die "Failed to delete '$suspend_file': $!";
 
1629
    }
1625
1630
}
1626
1631
 
1627
1632