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

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

revision 1.6 by dpavlin, Wed Oct 29 18:00:18 2003 UTC revision 1.7 by dpavlin, Sun Nov 2 10:21:45 2003 UTC
# Line 50  if ($debug) { Line 50  if ($debug) {
50  my $master = $ARGV[0] || "master";  my $master = $ARGV[0] || "master";
51  my $syncid = $ARGV[1] || die "SyncID not specified";  my $syncid = $ARGV[1] || die "SyncID not specified";
52    
53  my $minfo = "dbname=$master";  my $minfo = MkInfo($master,$masterhost,$masterport,$masteruser,$masterpassword);
 $minfo = "$minfo host=$masterhost" if (defined($masterhost));  
 $minfo = "$minfo port=$masterport" if (defined($masterport));  
 $minfo = "$minfo user=$masteruser" if (defined($masteruser));  
 $minfo = "$minfo password=$masterpassword" if (defined($masterpassword));  
54    
55  my $conn = Pg::connectdb($minfo);  my $conn = Pg::connectdb($minfo);
56  if ($conn->status != Pg::PGRES_CONNECTION_OK) {  if ($conn->status != Pg::PGRES_CONNECTION_OK) {

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

  ViewVC Help
Powered by ViewVC 1.1.26