Skip to content

Commit 6380fb3

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ 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() && (reader_participant_info.is_local() || writer_participant_info.is_superclient()))
11591159
{
11601160
// Only if they do not have the info yet
11611161
if (!reader_participant_info.is_relevant_participant(writer_guid.guidPrefix))
@@ -1235,7 +1235,7 @@ void DiscoveryDataBase::match_writer_reader_(
12351235

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

0 commit comments

Comments
 (0)