line |
true |
false |
branch |
60
|
0 |
0 |
if ($self->{'refresh_state'}) |
69
|
0 |
0 |
if ($have_dbh and not $self->{'have_masterdb'}) { } |
|
0 |
0 |
elsif (not $have_dbh) { } |
78
|
0 |
0 |
if ($have_dbh) |
95
|
0 |
0 |
if $self->{'refresh_state'} |
105
|
0 |
0 |
if ($have_dbh and Mgd::get_store()->get_lock('mgfs:device_update', 0)) { } |
123
|
0 |
0 |
if (my $state = $self->is_iow_diff($dev)) |
128
|
0 |
0 |
unless $dev->can_read_from |
132
|
0 |
0 |
unless keys %{$$self{'refresh_state'};} |
159
|
0 |
0 |
if ($pending_since and $pending_since > $start) |
171
|
0 |
0 |
if (not $pending_since or $pending_since <= $start) |
175
|
0 |
0 |
if (delete $self->{'db_monitor_ran'} or $pending_since) |
180
|
0 |
0 |
if ($self->{'updateable_devices'}) |
204
|
0 |
0 |
unless $dev |
215
|
0 |
0 |
unless ($self->cache_refresh) |
242
|
0 |
0 |
if ($$lineref =~ /^:refresh_monitor$/) |
243
|
0 |
0 |
if ($self->cache_refresh) { } |
273
|
0 |
0 |
unless @flat |
306
|
0 |
0 |
if (not defined $p or $p ne $c) |
328
|
0 |
0 |
$type eq 'srvset' ? : |
|
0 |
0 |
$type eq 'device' ? : |
|
0 |
0 |
$type eq 'host' ? : |
|
0 |
0 |
$type eq 'class' ? : |
|
0 |
0 |
$type eq 'domain' ? : |
332
|
0 |
0 |
if $type eq 'device' |
333
|
0 |
0 |
if (not $old or $self->diff_hash($old, $item)) |
354
|
0 |
0 |
if exists $old->{$k} and not exists $new->{$k} |
355
|
0 |
0 |
if exists $new->{$k} and not exists $old->{$k} |
356
|
0 |
0 |
if defined $old->{$k} and not defined $new->{$k} |
357
|
0 |
0 |
if defined $new->{$k} and not defined $old->{$k} |
358
|
0 |
0 |
unless defined $new->{$k} or defined $old->{$k} |
359
|
0 |
0 |
if $old->{$k} ne $new->{$k} |
398
|
0 |
0 |
unless /^(\w+)\s*:\s*(.+)$/ |
403
|
0 |
0 |
unless ($used and $total) |
404
|
0 |
0 |
unless defined $used |
405
|
0 |
0 |
unless defined $total |
415
|
0 |
0 |
if ($self->{'updateable_devices'}) |
417
|
0 |
0 |
$devrow && $devrow->{'mb_asof'} ? : |
419
|
0 |
0 |
if ($last + 15 < $now) |
432
|
0 |
0 |
unless $Mgd::DEBUG >= 1 |
445
|
0 |
0 |
if (not $test_write or $test_write->{'tries'} > 0) |
474
|
0 |
0 |
if $self->{'skip_host'}{$dev->hostid} |
486
|
0 |
0 |
unless ($self->on_usage_response($dev, $response, $start_time)) |
491
|
0 |
0 |
if (($self->{'last_test_write'}{$devid} || 0) + 15 > $now) |
496
|
0 |
0 |
unless ($dev->can_delete_from) |
529
|
0 |
0 |
if ($response->is_success) |
530
|
0 |
0 |
if ($response->content eq $test_write->{'content'}) |
531
|
0 |
0 |
unless ($dev->observed_writeable) |
541
|
0 |
0 |
if $test_write->{'tries'} > 0 |
549
|
0 |
0 |
if $response->is_success |
559
|
0 |
0 |
if ($response->is_success) |
561
|
0 |
0 |
unless ($host->observed_reachable) |
572
|
0 |
0 |
if ($failed_after < 0.5) { } |
573
|
0 |
0 |
unless ($dev->observed_unreachable) |
581
|
0 |
0 |
unless ($host->observed_unreachable) |
609
|
0 |
0 |
$response->is_success ? : |
612
|
0 |
0 |
if (not defined $prev or $prev != $rej) |
625
|
0 |
0 |
unless ($dev->observed_readable) |
642
|
0 |
0 |
if (scalar keys %{$$self{'refresh_state'};} == 0) |