[VOL-2845]: Fix concurrent access of SouthBoundPort data in statsmanager module
Change-Id: I7721a28de3b694a79493171f25f5497696b3b5c3
(cherry picked from commit 868131c6edc9eda73a31bf218ea63c3d93075592)
diff --git a/internal/pkg/core/statsmanager.go b/internal/pkg/core/statsmanager.go
index 31f9804..3545b7d 100755
--- a/internal/pkg/core/statsmanager.go
+++ b/internal/pkg/core/statsmanager.go
@@ -457,7 +457,7 @@
mutex.Lock()
StatMgr.SouthBoundPort[i] = &portPonStat
mutex.Unlock()
- logger.Debugf("Received-PON-Stats-for-Port %v : %v", i, StatMgr.SouthBoundPort[i])
+ logger.Debugf("Received-PON-Stats-for-Port %v : %v", i, portPonStat)
}
}