/[rserv]/bin/PrepareSnapshot
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/PrepareSnapshot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dpavlin, Thu Oct 30 19:59:48 2003 UTC revision 1.9 by dpavlin, Thu Oct 30 22:51:45 2003 UTC
# Line 84  if (defined($snapshot)) { Line 84  if (defined($snapshot)) {
84      $outf = *STDOUT;      $outf = *STDOUT;
85  }  }
86    
87  my $slavehost = 'localhost' if (! $slavehost);  $slavehost = 'localhost' if (! $slavehost);
88  my $slaveId  = GetSlaveId($mconn, $slave, $slavehost);  my $slaveId  = GetServerId($mconn, $slave, $slavehost);
89  if (! $slaveId) {  if (! $slaveId) {
90          print STDERR "Can't find SlaveId for db '$slave' on host $hostname. Is this database slave?\n";          print STDERR "Can't find SlaveId for db '$slave' on host $slavehost. Is this database slave?\n";
91          exit 1;          exit 1;
92  }  }
93  die "Unknown SlaveId $slaveId for host $hostname" if ($slaveId < 0);  die "Unknown SlaveId $slaveId for host $slavehost" if ($slaveId < 0);
94    
95  my $res = PrepareSnapshot ($mconn, $sconn, $outf, $mserver, $slaveId);  my $res = PrepareSnapshot ($mconn, $sconn, $outf, $mserver, $slaveId);
96    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26