Commit 5b03dab6 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix; make sure failed() returns actual failure status.

parent 4434701a
......@@ -77,7 +77,7 @@ sub New($$$@)
$self->{'NODES'} = {};
$self->{'PHYSNODES'} = {};
$self->{'FAILED'} = {};
$self->{'FAILCOUNT'} = {};
$self->{'FAILCOUNT'} = 0;
$self->{'OSMAP'} = {};
$self->{'TYPECACHE'} = {};
$self->{'OPLIST'} = {};
......@@ -98,7 +98,6 @@ sub New($$$@)
bless($self, $class);
# XXX
$self->noretry(0);
$self->failed(0);
$self->canceled(0);
return $self;
}
......@@ -120,6 +119,7 @@ sub oplist($) { return $_[0]->{'OPLIST'}; }
sub user($) { return $_[0]->{'USER'}; }
sub experiment($) { return $_[0]->{'EXPT'}; }
sub IncrFailCount($) { $_[0]->{'FAILCOUNT'}++ }
sub failed($) { return $_[0]->{'FAILCOUNT'}; }
# Grab a node by node_id.
sub node($$)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment