/[rserv]/misc/rserv_init.pl
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 /misc/rserv_init.pl

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

revision 1.2 by dpavlin, Fri Aug 15 23:02:02 2003 UTC revision 1.3 by dpavlin, Sat Aug 16 09:41:48 2003 UTC
# Line 257  sub init_repl_triggers { Line 257  sub init_repl_triggers {
257    print "Creating replication triggers\n";    print "Creating replication triggers\n";
258    
259    my $cmnd = "$basedir/../bin/MasterAddTable";    my $cmnd = "$basedir/../bin/MasterAddTable";
260    $cmnd .= " --host=$opt{h}"     if($opt{h});    $cmnd .= " --masterhost=$opt{h}"     if($opt{h});
261    $cmnd .= " --user=$opt{u}"     if($opt{u});    $cmnd .= " --masteruser=$opt{u}"     if($opt{u});
262    $cmnd .= " --password=$opt{p}" if($opt{p});    $cmnd .= " --masterpassword=$opt{p}" if($opt{p});
263    $cmnd .= " $opt{d}";    $cmnd .= " $opt{d}";
264    
265    foreach my $name (sort keys %unique_key) {    foreach my $name (sort keys %unique_key) {
# Line 286  sub init_slave_tables { Line 286  sub init_slave_tables {
286    print "Initialising slave tables\n";    print "Initialising slave tables\n";
287    
288    my $cmnd = "$basedir/../bin/SlaveAddTable";    my $cmnd = "$basedir/../bin/SlaveAddTable";
289    $cmnd .= " --host=$opt{h}"     if($opt{h});    $cmnd .= " --slavehost=$opt{h}"     if($opt{h});
290    $cmnd .= " --user=$opt{u}"     if($opt{u});    $cmnd .= " --slaveuser=$opt{u}"     if($opt{u});
291    $cmnd .= " --password=$opt{p}" if($opt{p});    $cmnd .= " --slavepassword=$opt{p}" if($opt{p});
292    $cmnd .= " $opt{d}";    $cmnd .= " $opt{d}";
293    
294    foreach my $name (sort keys %unique_key) {    foreach my $name (sort keys %unique_key) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26