Skip to content

Commit

Permalink
[wartermarkorch] Fix repeated m_pg_ids and m_unicast_queue_ids add up…
Browse files Browse the repository at this point in the history
… issue (#752)

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
  • Loading branch information
jipanyang authored and lguohan committed Jan 23, 2019
1 parent 7375015 commit dee34bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion orchagent/watermarkorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ void WatermarkOrch::doTask(SelectableTimer &timer)
{
SWSS_LOG_ENTER();

if (m_pg_ids.empty() or m_multicast_queue_ids.empty() or m_unicast_queue_ids.empty())
if (m_pg_ids.empty())
{
init_pg_ids();
}

if (m_multicast_queue_ids.empty() and m_unicast_queue_ids.empty())
{
init_queue_ids();
}

Expand Down

0 comments on commit dee34bc

Please sign in to comment.