/[rserv]/bin/GetSyncID
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/GetSyncID

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

revision 1.5 by dpavlin, Tue Aug 5 21:43:24 2003 UTC revision 1.7 by dpavlin, Fri Oct 31 00:21:29 2003 UTC
# Line 28  my $result = GetOptions( Line 28  my $result = GetOptions(
28          );          );
29    
30  if (defined($help) || (scalar(@ARGV) < 1)) {  if (defined($help) || (scalar(@ARGV) < 1)) {
31      print "Usage: $0 [options] slavedb table column      print "Usage: $0 [options] slavedb
32  Options:  Options:
33          --slavehost=hostname --slaveport=port          --slavehost=hostname --slaveport=port
34          --slaveuser=username --slavepassword=string          --slaveuser=username --slavepassword=string
# Line 56  my $conn = Pg::connectdb($sinfo); Line 56  my $conn = Pg::connectdb($sinfo);
56    
57  my $res = GetSyncID($conn);  my $res = GetSyncID($conn);
58    
59  die "ERROR\n" if $res < 0;  if (! defined $res || $res < 0)
   
 if (! defined $res)  
60  {  {
61      printf STDERR "No SyncID found\n";      printf STDERR "No SyncID found in $dbname\n";
62        exit(1);
63  }  }
64  else  else
65  {  {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26