Skip to content

Commit

Permalink
[coppmgrd] Fix Copp processing logic by using Producer del instead of…
Browse files Browse the repository at this point in the history
… del from Table

Signed-off-by: Vivek Reddy <[email protected]>
  • Loading branch information
vivekrnv authored Nov 30, 2023
1 parent f6a35e9 commit dac3972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfgmgr/coppmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ bool CoppMgr::isDupEntry(const std::string &key, std::vector<FieldValueTuple> &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;
}
}
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit dac3972

Please sign in to comment.