Skip to content

Commit 9d71f4b

Browse files
committed
Refs #20629: Match EDP with virtual EDP of SC
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
1 parent c630fdf commit 9d71f4b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,8 @@ void DiscoveryDataBase::match_writer_reader_(
11551155

11561156
// If reader is virtual OR not local, do not exchange info. Servers do not redirect Data(p) of remote clients.
11571157
// Otherwise, writer needs all the info from this endpoint
1158-
if (!reader_info.is_virtual() && reader_participant_info.is_local())
1158+
if (!reader_info.is_virtual() &&
1159+
(reader_participant_info.is_local() || writer_participant_info.is_superclient()))
11591160
{
11601161
// Only if they do not have the info yet
11611162
if (!reader_participant_info.is_relevant_participant(writer_guid.guidPrefix))
@@ -1235,7 +1236,8 @@ void DiscoveryDataBase::match_writer_reader_(
12351236

12361237
// If reader is external OR virtual, do not exchange info. Servers do not redirect Data(p) of remote clients.
12371238
// Otherwise, reader needs all the info from this endpoint
1238-
if (reader_participant_info.is_local() && !reader_info.is_virtual())
1239+
if (reader_participant_info.is_local() &&
1240+
(!reader_info.is_virtual() || reader_participant_info.is_superclient()))
12391241
{
12401242
// Only if they do not have the info yet
12411243
if (!writer_participant_info.is_relevant_participant(reader_guid.guidPrefix))

0 commit comments

Comments
 (0)