From 782af6d439d436b1934de7673573bf78bb4ae267 Mon Sep 17 00:00:00 2001 From: Stephen Sun Date: Wed, 3 Apr 2024 10:18:13 +0000 Subject: [PATCH] Fix error Signed-off-by: Stephen Sun --- orchagent/saihelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchagent/saihelper.cpp b/orchagent/saihelper.cpp index 554ff0f549..0dc68d62a0 100644 --- a/orchagent/saihelper.cpp +++ b/orchagent/saihelper.cpp @@ -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; } @@ -901,7 +901,7 @@ static inline void operateFlexCounterGroupDatabase(const string &group, bool is_gearbox) { std::vector 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);