1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-03 00:15:27 +00:00

Merge pull request #80 from moio/fix_lru_concurrent_map_write

LRU cache: fix concurrent map write
This commit is contained in:
Colleen Murphy
2023-06-23 13:22:50 -07:00
committed by GitHub

View File

@@ -220,8 +220,8 @@ func (s *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.AP
list, pages := listprocessor.PaginateList(list, opts.Pagination)
for _, item := range list {
item := item
result.Objects = append(result.Objects, toAPI(schema, &item, nil))
item := item.DeepCopy()
result.Objects = append(result.Objects, toAPI(schema, item, nil))
}
result.Revision = key.revision