Skip to content

Commit dee34bc

Browse files
jipanyanglguohan
authored andcommitted
[wartermarkorch] Fix repeated m_pg_ids and m_unicast_queue_ids add up issue (#752)
Signed-off-by: Jipan Yang <[email protected]>
1 parent 7375015 commit dee34bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

orchagent/watermarkorch.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,13 @@ void WatermarkOrch::doTask(SelectableTimer &timer)
158158
{
159159
SWSS_LOG_ENTER();
160160

161-
if (m_pg_ids.empty() or m_multicast_queue_ids.empty() or m_unicast_queue_ids.empty())
161+
if (m_pg_ids.empty())
162162
{
163163
init_pg_ids();
164+
}
165+
166+
if (m_multicast_queue_ids.empty() and m_unicast_queue_ids.empty())
167+
{
164168
init_queue_ids();
165169
}
166170

0 commit comments

Comments
 (0)