~akopytov/percona-xtrabackup/bug809073-1.7

« back to all changes in this revision

Viewing changes to innobackupex

  • Committer: Alexey Kopytov
  • Date: 2011-10-21 13:53:48 UTC
  • mfrom: (242.17.18 1.6)
  • Revision ID: akopytov@gmail.com-20111021135348-hdnges7191pcyj5g
AutomergeĀ fromĀ 1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
# backup my.cnf file
127
127
my $backup_config_file = '';
128
128
 
 
129
# whether host is detected as slave in safe slave backup mode
 
130
my $host_is_slave = 0;
 
131
 
129
132
# options from the options file
130
133
my %config;
131
134
 
402
405
    # release read locks on all tables
403
406
    mysql_unlockall() if !$option_no_lock;
404
407
 
405
 
    if ( $option_safe_slave_backup ) {
 
408
    if ( $option_safe_slave_backup && $host_is_slave ) {
406
409
      mysql_check();
407
410
      print STDERR "$prefix: Starting slave SQL thread\n";
408
411
      mysql_send('START SLAVE SQL_THREAD;');
2303
2306
sub wait_for_safe_slave {
2304
2307
   my @lines;
2305
2308
 
2306
 
   my $host_is_slave = 0;
 
2309
   $host_is_slave = 0;
2307
2310
   mysql_send 'SHOW SLAVE STATUS\G;';
2308
2311
   file_to_array($mysql_stdout, \@lines);
2309
2312
   foreach my $line ( @lines ) {