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 |
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 |
{ |
{ |