Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
746eeca4
Commit
746eeca4
authored
3 years ago
by
Utz-Uwe Haus
Browse files
Options
Downloads
Patches
Plain Diff
Add ctime to translated events, populate from Pool Events
parent
a7f846b6
Branches
78-add-origin-timestamp-to-events
Branches containing commit
Tags
Tags containing commit
2 merge requests
!32
Draft: Resolve "cmake integration issues"
,
!31
Resolve "Add origin timestamp to events"
Pipeline
#78824
passed
3 years ago
Stage: build-and-test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/maestro/pool.h
+1
-0
1 addition, 0 deletions
include/maestro/pool.h
maestro/subscription_registry.c
+4
-0
4 additions, 0 deletions
maestro/subscription_registry.c
with
5 additions
and
0 deletions
include/maestro/pool.h
+
1
−
0
View file @
746eeca4
...
@@ -387,6 +387,7 @@ mstro_subscribe(mstro_cdo_selector cdos, mstro_pool_event_kinds events,
...
@@ -387,6 +387,7 @@ mstro_subscribe(mstro_cdo_selector cdos, mstro_pool_event_kinds events,
struct
mstro_pool_event_
{
struct
mstro_pool_event_
{
enum
mstro_pool_event_kind
kind
;
/**< the event kind */
enum
mstro_pool_event_kind
kind
;
/**< the event kind */
uint64_t
serial
;
/**< the event identifier */
uint64_t
serial
;
/**< the event identifier */
mstro_nanosec_t
ctime
;
/**< the time the event was created at the source */
union
{
union
{
/* for DECLARE events */
/* for DECLARE events */
struct
{
struct
{
...
...
This diff is collapsed.
Click to expand it.
maestro/subscription_registry.c
+
4
−
0
View file @
746eeca4
...
@@ -1863,6 +1863,10 @@ mstro_pool_event_consume(const Mstro__Pool__Event *eventmsg)
...
@@ -1863,6 +1863,10 @@ mstro_pool_event_consume(const Mstro__Pool__Event *eventmsg)
eventmsg
->
kind
,
ev
->
kind
,
mstro_pool_event_description
(
ev
->
kind
));
eventmsg
->
kind
,
ev
->
kind
,
mstro_pool_event_description
(
ev
->
kind
));
ev
->
serial
=
eventmsg
->
serial
;
ev
->
serial
=
eventmsg
->
serial
;
assert
(
eventmsg
->
ctime
!=
NULL
);
ev
->
ctime
=
(
eventmsg
->
ctime
->
sec
*
NSEC_PER_SEC
)
+
eventmsg
->
ctime
->
nsec
;
switch
(
ev
->
kind
)
{
switch
(
ev
->
kind
)
{
case
MSTRO_POOL_EVENT_APP_JOIN
:
case
MSTRO_POOL_EVENT_APP_JOIN
:
assert
(
eventmsg
->
payload_case
==
MSTRO__POOL__EVENT__PAYLOAD_JOIN
);
assert
(
eventmsg
->
payload_case
==
MSTRO__POOL__EVENT__PAYLOAD_JOIN
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment