File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
include/ipfixprobe/outputPlugin/outputStorage Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +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) + 2 ) {
154+ if (cachedGeneration > readerData.generation .load (std::memory_order_acquire)) {
155155 readerData.seenValidBucket = true ;
156156 }
157157 } while (cachedGeneration != readerData.generation .load (std::memory_order_acquire)
Original file line number Diff line number Diff line change @@ -218,7 +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 >= readerData.generation .load (std::memory_order_acquire) + 2 ) {
221+ if (cachedGeneration > readerData.generation .load (std::memory_order_acquire)) {
222222 // std::cout << "Shto\n";
223223 readerData.seenValidBucket = true ;
224224 }
You can’t perform that action at this time.
0 commit comments