Skip to content
GitLab
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
ec63324b
Commit
ec63324b
authored
Mar 09, 2005
by
Timothy Stack
Browse files
Update the db when timelines and sequences are started/stopped.
parent
70792420
Changes
2
Hide whitespace changes
Inline
Side-by-side
event/sched/event-sched.c
View file @
ec63324b
...
...
@@ -1292,7 +1292,8 @@ handle_completeevent(event_handle_t handle, sched_event_t *eventp)
ctoken
,
agerror
);
if
(
strcmp
(
objtype
,
TBDB_OBJECTTYPE_TIMELINE
)
==
0
)
{
if
((
strcmp
(
objtype
,
TBDB_OBJECTTYPE_TIMELINE
)
==
0
)
||
(
strcmp
(
objtype
,
TBDB_OBJECTTYPE_SEQUENCE
)
==
0
))
{
RPC_grab
();
RPC_notifystart
(
pid
,
eid
,
objname
,
0
);
RPC_drop
();
...
...
event/sched/timeline-agent.c
View file @
ec63324b
...
...
@@ -316,7 +316,7 @@ static int timeline_agent_immediate(local_agent_t la, sched_event_t *se)
struct
timeval
now
,
then
;
int
token
,
lpc
;
if
(
strcmp
(
la
->
la_agent
->
name
,
"__
ns_timeline"
)
!=
0
)
{
if
(
str
n
cmp
(
la
->
la_agent
->
name
,
"__
"
,
2
)
!=
0
)
{
RPC_grab
();
RPC_notifystart
(
pid
,
eid
,
la
->
la_agent
->
name
,
1
);
RPC_drop
();
...
...
@@ -390,6 +390,13 @@ static int sequence_agent_immediate(local_agent_t la, sched_event_t *se)
sa
->
ta_local_agent
.
la_link
.
ln_Name
);
}
else
if
(
sa
->
ta_count
>
0
)
{
if
(
strncmp
(
la
->
la_agent
->
name
,
"__"
,
2
)
!=
0
)
{
RPC_grab
();
RPC_notifystart
(
pid
,
eid
,
la
->
la_agent
->
name
,
1
);
RPC_drop
();
}
event_notification_get_int32
(
handle
,
se
->
notification
,
"TOKEN"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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