1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-28 03:10:32 +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
commit 8128019458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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