File tree Expand file tree Collapse file tree
include/ipfixprobe/outputPlugin/outputStorage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class MQ2OutputStorage : public MQOutputStorage<ElementType> {
5252 const size_t tries
5353 = this ->m_totalWritersCount / this ->m_readerGroupSizes [readerGroupIndex] + 1 ;
5454 BackoffScheme backoff (3 , std::numeric_limits<std::size_t >::max ());
55- for ( const auto _ : std::views::iota ( 0U , std::numeric_limits<std:: size_t >:: max ()) ) {
55+ while ( true ) {
5656 const uint8_t sequenceIndex = this ->m_readersData [globalReaderIndex]->sequenceIndex ++;
5757 const uint8_t queueIndex
5858 = this ->m_readersData [globalReaderIndex]->queueJumpSequence
@@ -63,8 +63,10 @@ class MQ2OutputStorage : public MQOutputStorage<ElementType> {
6363 }
6464 // std::this_thread::yield();
6565 backoff.backoff ();
66+ if (finished (readerGroupIndex)) {
67+ return nullptr ;
68+ }
6669 }
67- return nullptr ;
6870 }
6971
7072 bool finished (const std::size_t readerGroupIndex) noexcept override
You can’t perform that action at this time.
0 commit comments