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

Do not bring in event lib, until the one function we need it in.

parent 856e729d
......@@ -47,7 +47,6 @@ $JAILIPMASK = "@JAILIPMASK@";
use libdb;
use libtestbed;
use emutil;
use event;
use English;
use Socket;
use Data::Dumper;
......@@ -1888,6 +1887,7 @@ sub GetBootLog($$)
sub SetEventState($$)
my ($self, $state) = @_;
require event;
# Must be a real reference.
return -1
......@@ -1899,7 +1899,7 @@ sub SetEventState($$)
# If using the event system, we send out an event for the state daemon to
# pick up. Otherwise, we just set the state in the database ourselves
return EventSendFatal(objtype => TBDB_TBEVENT_NODESTATE,
return event::EventSendFatal(objtype => TBDB_TBEVENT_NODESTATE,
objname => $node_id,
eventtype => $state,
host => $BOSSNODE);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment