Skip to content

Commit

Permalink
Lookup the participant proxy data to pass the discovery-server tests
Browse files Browse the repository at this point in the history
Signed-off-by: tempate <danieldiaz@eprosima.com>
  • Loading branch information
Tempate committed Jan 31, 2024
1 parent d25b750 commit 0c75e09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,8 @@ void PDP::notify_and_maybe_ignore_new_participant(
{
{
std::lock_guard<std::mutex> cb_lock(callback_mtx_);
ParticipantDiscoveryInfo info(*pdata);
ParticipantProxyData* pdata_copy = get_participant_proxy_data(pdata->m_guid.guidPrefix);
ParticipantDiscoveryInfo info(*pdata_copy);
info.status = ParticipantDiscoveryInfo::DISCOVERED_PARTICIPANT;


Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void PDPClient::assignRemoteEndpoints(
if (data_matches_with_prefix(svr.guidPrefix, *pdata))
{
std::unique_lock<std::recursive_mutex> lock(*getMutex());
svr.proxy = pdata;
svr.proxy = get_participant_proxy_data(pdata->m_guid.guidPrefix);
}
}
}
Expand Down

0 comments on commit 0c75e09

Please sign in to comment.