Skip to content

Commit

Permalink
xRefs #20933: Set datasharing off after the clear
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf committed May 8, 2024
1 parent 17a4c82 commit 8607cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/cpp/rtps/builtin/data/ReaderProxyData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,6 @@ bool ReaderProxyData::readFromCDRMessage(
bool should_filter_locators,
fastdds::rtps::VendorId_t source_vendor_id)
{
m_qos.data_sharing.off();
auto param_process = [this, &network, &is_shm_transport_available, &should_filter_locators, source_vendor_id](
CDRMessage_t* msg, const ParameterId_t& pid, uint16_t plength)
{
Expand Down Expand Up @@ -1092,10 +1091,9 @@ bool ReaderProxyData::readFromCDRMessage(
return true;
};



uint32_t qos_size;
clear();
m_qos.data_sharing.off();
try
{
if (ParameterList::readParameterListfromCDRMsg(*msg, param_process, true, qos_size))
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/data/WriterProxyData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ bool WriterProxyData::readFromCDRMessage(
bool should_filter_locators,
fastdds::rtps::VendorId_t source_vendor_id)
{
m_qos.data_sharing.off();
auto param_process = [this, &network, &is_shm_transport_available, &should_filter_locators, source_vendor_id](
CDRMessage_t* msg, const ParameterId_t& pid, uint16_t plength)
{
Expand Down Expand Up @@ -1077,6 +1076,7 @@ bool WriterProxyData::readFromCDRMessage(

uint32_t qos_size;
clear();
m_qos.data_sharing.off();
try
{
if (ParameterList::readParameterListfromCDRMsg(*msg, param_process, true, qos_size))
Expand Down

0 comments on commit 8607cf8

Please sign in to comment.