Skip to content

Commit 1c877b3

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
++
1 parent c2be481 commit 1c877b3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/ipfixprobe/outputPlugin/outputStorage/bOutputStorage.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,19 @@ class BOutputStorage : public OutputStorage<ElementType> {
195195
// auto& y = m_buckets[readerData.readPosition];
196196
if (overflowed) {
197197
if (!this->writersPresent()) {
198+
std::cout << "Leving\n";
198199
readerData.generation.fetch_add(1, std::memory_order_release);
199200
updateLowestReaderGeneration();
200201
return nullptr;
201202
}
202203
if (!readerData.seenValidBucket) {
204+
std::cout << "Hits\n";
203205
updateLowestReaderGeneration();
204206
backoffScheme.backoff();
205207
// readerData.skipLoop = true;
206208
return nullptr;
207209
}
210+
std::cout << "Normano\n";
208211
readerData.generation.fetch_add(1, std::memory_order_release);
209212
readerData.seenValidBucket = false;
210213
// readerData.skipLoop = false;
@@ -217,6 +220,7 @@ class BOutputStorage : public OutputStorage<ElementType> {
217220
// if (cachedGeneration >= readerData.generation + WINDOW_SIZE) {
218221
if (cachedGeneration
219222
>= readerData.generation.load(std::memory_order_acquire) + WINDOW_SIZE) {
223+
std::cout << "Shto\n";
220224
readerData.seenValidBucket = true;
221225
}
222226
} while (cachedGeneration != readerData.generation.load(std::memory_order_acquire)

0 commit comments

Comments
 (0)