Skip to content

Commit

Permalink
Refs #21913: Revert SHM check
Browse files Browse the repository at this point in the history
Signed-off-by: eProsima <[email protected]>
  • Loading branch information
JesusPoderoso committed Oct 17, 2024
1 parent 505314d commit fbacf46
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/cpp/rtps/participant/RTPSParticipantImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,24 +492,15 @@ bool RTPSParticipantImpl::setup_transports()

transportDescriptor->unlock();

auto shm_transport_descriptor = dynamic_cast<SharedMemTransportDescriptor*>(transportDescriptor.get());
if (transport_registered)
{
has_shm_transport_ |= (nullptr != shm_transport_descriptor);
if (nullptr != shm_transport_descriptor)
{
if (shm_transport_descriptor->max_message_size() > 572u)
{
EPROSIMA_LOG_ERROR(RTPS_PARTICIPANT,
"Unable to Register SHM Transport. Maximum message size needs to be"
"equal or higher than the PDP package size.");
}
}
has_shm_transport_ |=
(nullptr != dynamic_cast<SharedMemTransportDescriptor*>(transportDescriptor.get()));
}
else
{
// SHM transport could be disabled
if (nullptr != shm_transport_descriptor)
if (nullptr != dynamic_cast<SharedMemTransportDescriptor*>(transportDescriptor.get()))
{
EPROSIMA_LOG_ERROR(RTPS_PARTICIPANT,
"Unable to Register SHM Transport. SHM Transport is not supported in"
Expand Down

0 comments on commit fbacf46

Please sign in to comment.