Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <stephens@nvidia.com>
  • Loading branch information
stephenxs committed Apr 6, 2024
1 parent bd2ea24 commit 46f6089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchagent/saihelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ static inline void notifySyncdCounterOperation(bool is_gearbox, const sai_attrib
{
if (sai_switch_api == nullptr)
{
// This can happen during destrction of the orchagent daemon.
// This can happen during destruction of the orchagent daemon.
SWSS_LOG_ERROR("sai_switch_api is NULL");
return;
}
Expand Down Expand Up @@ -901,7 +901,7 @@ static inline void operateFlexCounterGroupDatabase(const string &group,
bool is_gearbox)
{
std::vector<FieldValueTuple> fvTuples;
auto &flexCounterGroupTable = is_gearbox ? gFlexCounterGroupTable : gGearBoxFlexCounterGroupTable;
auto &flexCounterGroupTable = is_gearbox ? gGearBoxFlexCounterGroupTable : gFlexCounterGroupTable;

operateFlexCounterDbSingleField(fvTuples, POLL_INTERVAL_FIELD, poll_interval);
operateFlexCounterDbSingleField(fvTuples, STATS_MODE_FIELD, stats_mode);
Expand Down Expand Up @@ -1014,7 +1014,7 @@ void delFlexCounterGroup(const std::string &group,
{
if (gTraditionalFlexCounter)
{
auto &flexCounterGroupTable = is_gearbox ? gFlexCounterGroupTable : gGearBoxFlexCounterGroupTable;
auto &flexCounterGroupTable = is_gearbox ? gGearBoxFlexCounterGroupTable : gFlexCounterGroupTable;

if (flexCounterGroupTable != nullptr)
{
Expand Down

0 comments on commit 46f6089

Please sign in to comment.