Skip to content

Commit

Permalink
Refs #11743. Fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Sep 2, 2021
1 parent 0be7552 commit 120b052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/rtps/DataSharing/ReaderPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ class ReaderPool : public DataSharingPayloadPool
CacheChange_t ch;
SequenceNumber_t last_sequence = c_SequenceNumber_Unknown;
get_next_unread_payload(ch, last_sequence);
while (ch.sequenceNumber != c_SequenceNumber_Unknown)
while (ch.sequenceNumber != SequenceNumber_t::unknown())
{
advance(next_payload_);
get_next_unread_payload(ch, last_sequence);
}
assert(next_payload_ == end());
}

segment_ = std::move(local_segment);
Expand Down
1 change: 1 addition & 0 deletions src/cpp/rtps/reader/StatefulReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ bool StatefulReader::matched_writer_add(
{
SequenceNumberSet_t sns(last_seq + 1);
send_acknack(wp, sns, *wp, false);
wp->lost_changes_update(last_seq + 1);
}
}
else if (!is_same_process)
Expand Down

0 comments on commit 120b052

Please sign in to comment.