Commit f8985d93 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Remove duplicate copy of GetEventState(). This git to cvs thing is

severely flaky.
parent 3aa338f2
......@@ -739,29 +739,6 @@ sub GetEventState($$)
return 0;
}
#
# We do this cause we always want to go to the DB.
#
sub GetEventState($$)
{
my ($self, $pstate) = @_;
my $node_id = $self->node_id();
my $query_result =
DBQueryWarn("select eventstate from nodes where node_id='$node_id'");
return -1
if (!$query_result || !$query_result->numrows);
my ($state) = $query_result->fetchrow_array();
$state = TBDB_NODESTATE_UNKNOWN
if (!defined($state));
$self->{'DBROW'} = $state
if (defined($self->{'DBROW'}));
$$pstate = $state;
return 0;
}
#
# Equality test for two experiments.
# Not strictly necessary in perl, but good form.
......
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