Skip to content

Commit 44fddab

Browse files
Protect WriterHistory::remove_change_and_reuse (#5115) (#5121)
Signed-off-by: Juan Lopez Fernandez <[email protected]> (cherry picked from commit 0d996bc) Co-authored-by: juanlofer-eprosima <[email protected]>
1 parent 45490ae commit 44fddab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cpp/rtps/history/WriterHistory.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ CacheChange_t* WriterHistory::remove_change_and_reuse(
232232
return nullptr;
233233
}
234234

235+
std::lock_guard<RecursiveTimedMutex> guard(*mp_mutex);
236+
235237
// Create a temporary reference change associated to the sequence number
236238
CacheChange_t ch;
237239
ch.sequenceNumber = sequence_number;

0 commit comments

Comments
 (0)