From 20699ca8701e85087652d01bd4f8cd9520f2aea3 Mon Sep 17 00:00:00 2001 From: TheFixer Date: Tue, 2 Jan 2024 10:48:16 +0100 Subject: [PATCH] Inject historical data as unregistered when the proxy writer is not (yet?) discovered Signed-off-by: TheFixer --- src/core/ddsc/src/dds_reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ddsc/src/dds_reader.c b/src/core/ddsc/src/dds_reader.c index 3a8df71815..0a706938e9 100644 --- a/src/core/ddsc/src/dds_reader.c +++ b/src/core/ddsc/src/dds_reader.c @@ -537,8 +537,8 @@ dds_return_t dds_reader_store_historical_serdata (dds_entity_t reader, dds_guid_ ret = DDS_RETCODE_BAD_PARAMETER; goto fail_tk_builtin; } - /* historical data is always unregistered */ - if (!ddsi_builtintopic_is_visible(gv->builtin_topic_interface, &ddsiguid, ddsi_get_entity_vendorid(&rd->e))) { + /* inject historical data as unregistered when the proxy writer is not (yet?) discovered */ + if (ddsi_entidx_lookup_proxy_writer_guid (gv->entity_index, &ddsiguid) == NULL) { serdata->statusinfo |= DDSI_STATUSINFO_UNREGISTER; } /* set the writer guid of the serdata */