From dac3972d6d0ce74f22021a8aeab0c716570a45f8 Mon Sep 17 00:00:00 2001 From: Vivek Date: Wed, 29 Nov 2023 22:53:46 -0800 Subject: [PATCH] [coppmgrd] Fix Copp processing logic by using Producer del instead of del from Table Signed-off-by: Vivek Reddy --- cfgmgr/coppmgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfgmgr/coppmgr.cpp b/cfgmgr/coppmgr.cpp index 5aa3b06b4e..cfa94988d9 100644 --- a/cfgmgr/coppmgr.cpp +++ b/cfgmgr/coppmgr.cpp @@ -285,7 +285,7 @@ bool CoppMgr::isDupEntry(const std::string &key, std::vector &f if ((!field_found) || (field_found && preserved_copp_it->second.compare(value))) { // overwrite -> delete preserved entry from copp table and set a new entry instead - m_coppTable.del(key); + m_appCoppTable.del(key); return false; } } @@ -415,7 +415,7 @@ CoppMgr::CoppMgr(DBConnector *cfgDb, DBConnector *appDb, DBConnector *stateDb, c auto copp_it = supported_copp_keys.find(it); if (copp_it == supported_copp_keys.end()) { - m_coppTable.del(it); + m_appCoppTable.del(it); } } }