Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
  • Loading branch information
MyonKeminta committed Feb 18, 2024
1 parent cce241a commit 8dc5d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/locate/region_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2597,9 +2597,9 @@ func (s *StoreHealthStatus) updateTiKVServerSideSlowScore(score int64, currTime
s.tikvSideSlowScore.hasTiKVFeedback.Store(true)

lastScore := s.tikvSideSlowScore.score.Load()
logutil.BgLogger().Info("updateTiKVServerSideSlowScore called", zap.Int64("score", score), zap.Int64("lastScore", lastScore))

// Skip updating to avoid the overhead when it doesn't look slow.
if lastScore < 10 && score < 10 {
if lastScore == score {
return
}

Expand Down

0 comments on commit 8dc5d28

Please sign in to comment.