Skip to content

Commit

Permalink
optimize workload first create spd agent fetch latency
Browse files Browse the repository at this point in the history
  • Loading branch information
luomingmeng authored and waynepeking348 committed Apr 17, 2024
1 parent 62c0658 commit bd179d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metaserver/spd/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (s *Cache) GetNextFetchRemoteTime(key string, now time.Time, skipBackoff bo

info, ok := s.spdInfo[key]
if ok && info != nil {
if info.penaltyForFetchingRemoteTime > 0 {
if !skipBackoff && info.penaltyForFetchingRemoteTime > 0 {
return info.lastFetchRemoteTime.Add(info.penaltyForFetchingRemoteTime)
}

Expand Down

0 comments on commit bd179d0

Please sign in to comment.