Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
731b4885
Commit
731b4885
authored
Jul 12, 2004
by
Leigh B. Stoller
Browse files
Send internal event anytime we change the experiment state; this state
is currently only for use by the RPC server.
parent
4bd5575d
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/libdb.pm.in
View file @
731b4885
...
...
@@ -458,6 +458,7 @@ sub TBDB_TBEVENT_NODESTATE { "TBNODESTATE"; }
sub TBDB_TBEVENT_NODEOPMODE { "TBNODEOPMODE"; }
sub TBDB_TBEVENT_CONTROL { "TBCONTROL"; }
sub TBDB_TBEVENT_COMMAND { "TBCOMMAND"; }
sub TBDB_TBEVENT_EXPTSTATE { "TBEXPTSTATE"; }
#
# For nodes, we use this set of events.
...
...
@@ -1301,6 +1302,14 @@ sub SetExpState($$$)
{
my($pid, $eid, $state) = @_;
if ($EVENTSYS) {
return EventSendFatal(objtype => TBDB_TBEVENT_EXPTSTATE,
objname => "$pid/$eid",
eventtype => $state,
expt => "$pid/$eid",
host => $BOSSNODE);
}
my $query_result =
DBQueryWarn("update experiments set state='$state' ".
"where eid='$eid' and pid='$pid'");
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment