line |
true |
false |
branch |
31
|
0 |
0 |
unless (eval {
do {
$self->connector->connection->do('STOP SLAVE IO_THREAD');
1
}
}) |
33
|
0 |
0 |
if ($e =~ / failed: This operation requires a running slave/) { } |
34
|
0 |
0 |
if $self->log |
38
|
0 |
0 |
if $self->log |
51
|
0 |
0 |
unless (eval {
do {
$self->connector->connection->do('START SLAVE IO_THREAD');
1
}
}) |
53
|
0 |
0 |
if ($e =~ / failed: This operation cannot be performed with a running slave/) { } |
55
|
0 |
0 |
if $self->log |
59
|
0 |
0 |
if $self->log |
72
|
0 |
0 |
unless (eval {
do {
$self->connector->connection->do('STOP SLAVE SQL_THREAD');
1
}
}) |
74
|
0 |
0 |
if ($e =~ / failed: This operation requires a running slave/) { } |
75
|
0 |
0 |
if $self->log |
79
|
0 |
0 |
if $self->log |
92
|
0 |
0 |
unless (eval {
do {
$self->connector->connection->do('START SLAVE SQL_THREAD');
1
}
}) |
94
|
0 |
0 |
if ($e =~ / failed: This operation cannot be performed with a running slave/) { } |
96
|
0 |
0 |
if $self->log |
100
|
0 |
0 |
if $self->log |
113
|
0 |
0 |
unless (eval {
do {
$threads = $self->connector->connection->threads
}
}) |
115
|
0 |
0 |
if $self->log |
121
|
0 |
0 |
if $t->{'state'} and $t->{'state'} =~ /^(?:Slave has|Has) read all relay log/ |
123
|
0 |
0 |
unless $repl_found |
131
|
0 |
0 |
unless $status->{'master_host'} |
144
|
0 |
0 |
unless (eval {
do {
$status = lc_keys($self->connector->connection->selectrow_hashref('SHOW SLAVE STATUS') || {})
}
}) |
146
|
0 |
0 |
if $self->log |
161
|
0 |
0 |
if ($safety eq 'no_safety' or $safety eq 'emergency') { } |
|
0 |
0 |
elsif ($safety eq 'max_safety' or $safety eq 'outside_transaction') { } |
|
0 |
0 |
elsif ($safety eq 'medium_safety' or $safety eq 'trust_transaction') { } |
|
0 |
0 |
elsif ($safety eq 'low_safety' or $safety eq 'time_limited') { } |
167
|
0 |
0 |
if ($self->status->{'slave_sql_running'} =~ /^No/i) |
183
|
0 |
0 |
unless $self->status->{'slave_sql_running'} =~ /^Yes/i |
189
|
0 |
0 |
unless $self->status->{'slave_sql_running'} =~ /^Yes/i |
204
|
0 |
0 |
unless (defined $thread) |
208
|
0 |
0 |
unless defined $thread |
209
|
0 |
0 |
$thread->{'time'} < 4000000000 ? : |
215
|
0 |
0 |
unless (defined $thread) |
219
|
0 |
0 |
unless defined $thread |
220
|
0 |
0 |
$thread->{'time'} < 4000000000 ? : |
228
|
0 |
0 |
unless @candidates |
233
|
0 |
0 |
if ($hint == 1) { } |
|
0 |
0 |
elsif ($hint == 2) { } |
|
0 |
0 |
elsif (@candidates == 1) { } |
235
|
0 |
0 |
if @candidates > 1 |
240
|
0 |
0 |
if @candidates > 1 |
244
|
0 |
0 |
if $self->log |
251
|
0 |
0 |
if ($hint == 1) { } |
|
0 |
0 |
elsif ($hint == 2) { } |
257
|
0 |
0 |
if $self->log |
275
|
0 |
0 |
unless defined $c and ref $c and $c->can('connection') |
284
|
0 |
0 |
unless @$logs |
291
|
0 |
0 |
unless my $referenced = $r->status->{'master_log_file'} |
292
|
0 |
0 |
if $referenced lt $required |
299
|
0 |
0 |
if $logs->[$i]{'log_name'} eq $required |
301
|
0 |
0 |
unless $required_index >= 0 |
305
|
0 |
0 |
if $keep and $#{$logs;} - $keep < $required_index |
340
|
0 |
0 |
if not as_bool($status->{'slave_sql_running'}) and $status->{'last_errno'} |
349
|
0 |
0 |
unless ref $thread eq 'HASH' |
350
|
0 |
0 |
if defined $thread->{'db'} |
351
|
0 |
0 |
if $thread->{'state'} =~ /^Waiting for master to send event/ |
352
|
0 |
0 |
if $thread->{'state'} =~ /
^Waiting\ for\ the\ next\ event
| ^Reading\ event\ from\ the\ relay
| ^Making\ temp\ file
| ^Has\ read\ all\ relay\ log;\ waiting\ for\ the
| ^Slave\ has\ read\ all\ relay\ log;\ waiting\ for\ the
| freeing\ items
/x |