From dee34bcdaeef067972e26c3b2d7695a2f9e02c12 Mon Sep 17 00:00:00 2001 From: Jipan Yang Date: Wed, 23 Jan 2019 11:33:19 -0800 Subject: [PATCH] [wartermarkorch] Fix repeated m_pg_ids and m_unicast_queue_ids add up issue (#752) Signed-off-by: Jipan Yang --- orchagent/watermarkorch.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/orchagent/watermarkorch.cpp b/orchagent/watermarkorch.cpp index bef7de89826b..79d3823db49c 100644 --- a/orchagent/watermarkorch.cpp +++ b/orchagent/watermarkorch.cpp @@ -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(); }