Skip to content
Snippets Groups Projects
Commit c286b16d authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'ostreamseq.resize.fix' into 'master'

Fix OOB acces in OutStreamSeq when service enabled but unused

See merge request atlas/athena!34353
parents 5c87b53f 15d1a598
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,10 @@ void OutputStreamSequencerSvc::handle(const Incident& inc)
// new event start - assing current rangeId to its slot
ATH_MSG_DEBUG("Assigning rangeID = " << m_currentRangeID << " to slot " << slot);
std::lock_guard lockg( m_mutex );
// If this service is enabled but not getting NextRange incidents, need to resize here
if( slot >= m_rangeIDinSlot.size() ) {
m_rangeIDinSlot.resize( std::max(slot+1, Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents()) );
}
m_rangeIDinSlot[ slot ] = m_currentRangeID;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment