Skip to content

Commit e8c7b55

Browse files
committed
Refs #22901. Bonus point: fix change kind in data frag processing.
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
1 parent 1f194c4 commit e8c7b55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cpp/rtps/messages/MessageReceiver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ bool MessageReceiver::proc_Submsg_DataFrag(
959959
//FOUND THE READER.
960960
//We ask the reader for a cachechange to store the information.
961961
CacheChange_t ch;
962+
ch.kind = ALIVE;
962963
ch.writerGUID.guidPrefix = source_guid_prefix_;
963964
valid &= CDRMessage::readEntityId(msg, &ch.writerGUID.entityId);
964965

@@ -1031,7 +1032,6 @@ bool MessageReceiver::proc_Submsg_DataFrag(
10311032
uint32_t next_pos = msg->pos + payload_size;
10321033
if (msg->length >= next_pos && payload_size > 0)
10331034
{
1034-
ch.kind = ALIVE;
10351035
ch.serializedPayload.data = &msg->buffer[msg->pos];
10361036
ch.serializedPayload.length = payload_size;
10371037
ch.serializedPayload.max_size = payload_size;

0 commit comments

Comments
 (0)