Skip to content

Commit

Permalink
Set match creation time to cached time
Browse files Browse the repository at this point in the history
This avoids the strange situation where ACKNACK events can be scheduled
at times earlier than the purported creation time of the match object.

That strange situation is harmless if progress is guaranteed in the
scheduling of events, which is addressed in a separate commit.

Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Nov 27, 2023
1 parent 9e5cace commit 0ed1837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ddsi/src/ddsi_endpoint_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ void ddsi_proxy_writer_add_connection (struct ddsi_proxy_writer *pwr, struct dds
ELOGDISC (pwr, " ddsi_proxy_writer_add_connection(pwr "PGUIDFMT" rd "PGUIDFMT")",
PGUID (pwr->e.guid), PGUID (rd->e.guid));
m->rd_guid = rd->e.guid;
m->tcreate = ddsrt_time_monotonic ();
m->tcreate = tnow;

/* We track the last heartbeat count value per reader--proxy-writer
pair, so that we can correctly handle directed heartbeats. The
Expand Down

0 comments on commit 0ed1837

Please sign in to comment.