From 4cc018cfd7dcc1a1042623a2408fb301f234791e Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Wed, 3 Jun 2020 13:35:45 +0200 Subject: [PATCH] Set durability_service on SPDP writer QoS Signed-off-by: Erik Boasson --- src/core/ddsi/src/q_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ddsi/src/q_init.c b/src/core/ddsi/src/q_init.c index 46571cc..15eb67c 100644 --- a/src/core/ddsi/src/q_init.c +++ b/src/core/ddsi/src/q_init.c @@ -1184,7 +1184,9 @@ int rtps_init (struct ddsi_domaingv *gv) ddsi_xqos_init_default_subscriber (&gv->default_xqos_sub); ddsi_xqos_init_default_publisher (&gv->default_xqos_pub); ddsi_xqos_copy (&gv->spdp_endpoint_xqos, &gv->default_xqos_rd); + ddsi_xqos_mergein_missing (&gv->spdp_endpoint_xqos, &gv->default_xqos_wr, ~(uint64_t)0); gv->spdp_endpoint_xqos.durability.kind = DDS_DURABILITY_TRANSIENT_LOCAL; + assert (gv->spdp_endpoint_xqos.reliability.kind == DDS_RELIABILITY_BEST_EFFORT); make_builtin_endpoint_xqos (&gv->builtin_endpoint_xqos_rd, &gv->default_xqos_rd); make_builtin_endpoint_xqos (&gv->builtin_endpoint_xqos_wr, &gv->default_xqos_wr); #ifdef DDSI_INCLUDE_SECURITY