From 0ed1837e31f12e53bf2c729aeb09fc431528fe43 Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Thu, 23 Nov 2023 11:00:46 +0100 Subject: [PATCH] Set match creation time to cached time 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 --- src/core/ddsi/src/ddsi_endpoint_match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ddsi/src/ddsi_endpoint_match.c b/src/core/ddsi/src/ddsi_endpoint_match.c index bbcf695c6d..f40a8ba84a 100644 --- a/src/core/ddsi/src/ddsi_endpoint_match.c +++ b/src/core/ddsi/src/ddsi_endpoint_match.c @@ -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