mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Merge pull request #1788 from weaveworks/fix-memcache-client-miss-and-leak-on-corrupt
fix MemcacheClient.FetchReports miss & leak on corrupt report
This commit is contained in:
@@ -186,7 +186,8 @@ func (c *MemcacheClient) FetchReports(keys []string) (map[string]report.Report,
|
||||
}
|
||||
|
||||
reports := map[string]report.Report{}
|
||||
for i := 0; i < len(keys)-len(missing); i++ {
|
||||
lenFound := len(keys) - len(missing)
|
||||
for i := 0; i < lenFound; i++ {
|
||||
r := <-ch
|
||||
if r.report == nil {
|
||||
missing = append(missing, r.key)
|
||||
|
||||
Reference in New Issue
Block a user