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 @@ -151,8 +151,7 @@ class B2OutputStorage : public BOutputStorage<ElementType> {
151151 std::memory_order_acquire);
152152 // std::atomic_thread_fence(std::memory_order_acquire);
153153 cachedBucketIndex = this ->m_buckets [readerData.readPosition ].bucketIndex ;
154- if (cachedGeneration >= readerData.generation .load (std::memory_order_acquire)
155- + BOutputStorage<ElementType>::WINDOW_SIZE ) {
154+ if (cachedGeneration >= readerData.generation .load (std::memory_order_acquire) + 2 ) {
156155 readerData.seenValidBucket = true ;
157156 }
158157 } while (cachedGeneration != readerData.generation .load (std::memory_order_acquire)
Original file line number Diff line number Diff line change @@ -218,8 +218,7 @@ class BOutputStorage : public OutputStorage<ElementType> {
218218 // std::atomic_thread_fence(std::memory_order_acquire);
219219 cachedBucketIndex = m_buckets[readerData.readPosition ].bucketIndex ;
220220 // if (cachedGeneration >= readerData.generation + WINDOW_SIZE) {
221- if (cachedGeneration
222- >= readerData.generation .load (std::memory_order_acquire) + WINDOW_SIZE ) {
221+ if (cachedGeneration >= readerData.generation .load (std::memory_order_acquire) + 2 ) {
223222 // std::cout << "Shto\n";
224223 readerData.seenValidBucket = true ;
225224 }
You can’t perform that action at this time.
0 commit comments