~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to lib/GenTest/Server/ReplMySQLd.pm

  • Committer: Bernt M. Johnsen
  • Date: 2010-03-04 12:45:54 UTC
  • mto: (0.101.22 lp-randgen-xml)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: bernt.johnsen@sun.com-20100304124554-6v46wa6dks03s8nq
Fix referneces to error_log, time-stamp on valgrind and some more

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
    my ($file, $pos) = $self->master->dbh->selectrow_array("SHOW MASTER STATUS");
184
184
    say("master status $file/$pos");
185
185
    my $wait_result = $self->slave->dbh->selectrow_array("SELECT MASTER_POS_WAIT('$file',$pos)");
186
 
    return $wait_result;
 
186
    if (not defined $wait_result) {
 
187
        my @slave_status = $self->slave->dbh->selectrow_array("SHOW SLAVE STATUS");
 
188
        say("Slave SQL thread has stopped with error: ".$slave_status[37]);
 
189
                return STATUS_REPLICATION_FAILURE;
 
190
    } else {
 
191
        return STATUS_OK;
 
192
    }
187
193
}
188
194
 
189
195
sub stopServer {