Skip to content

Commit

Permalink
Fix to gtp cache cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vrushalijoshi committed May 9, 2022
1 parent 35de918 commit 17bd35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admiral/pkg/clusters/serviceentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func updateGlobalGtpCache(cache *AdmiralCache, identity, env string, gtps map[st
}
if len(gtpsOrdered) == 0 {
log.Debugf("No GTPs found for identity=%s in env=%s. Deleting global cache entries if any", identity, env)
cache.GlobalTrafficCache.Delete(env, identity)
cache.GlobalTrafficCache.Delete(identity, env)
return
} else if len(gtpsOrdered) > 1 {
log.Debugf("More than one GTP found for identity=%s in env=%s.", identity, env)
Expand Down

0 comments on commit 17bd35a

Please sign in to comment.