Skip to content

Commit

Permalink
Refs #20629: Match EDP with virtual EDP of SC
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed May 6, 2024
1 parent 15fce84 commit 77acce1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,8 @@ void DiscoveryDataBase::match_writer_reader_(

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

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

0 comments on commit 77acce1

Please sign in to comment.