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:
commit
8128019458
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user