Skip to content

Commit

Permalink
Fix issue: the bulk context isn't removed when per counter ID chunk s…
Browse files Browse the repository at this point in the history
…ize is configured

Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Dec 18, 2024
1 parent 6c1086a commit 2619c7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion syncd/FlexCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,15 @@ class CounterContext : public BaseCounterContext
ctx.counters.resize(ctx.counter_ids.size() * ctx.object_keys.size());
ctx.object_statuses.pop_back();
}
break;
if (m_counterChunkSizeMapFromPrefix.empty())
{
break;
}
else
{
// There can be more than one bulk context containing the VID when the per counter ID bulk chunk size is configured
continue;
}
}

return found;
Expand Down

0 comments on commit 2619c7e

Please sign in to comment.