mirror of
https://github.com/rancher/steve.git
synced 2025-07-12 14:18:38 +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)
|
list, pages := listprocessor.PaginateList(list, opts.Pagination)
|
||||||
|
|
||||||
for _, item := range list {
|
for _, item := range list {
|
||||||
item := item
|
item := item.DeepCopy()
|
||||||
result.Objects = append(result.Objects, toAPI(schema, &item, nil))
|
result.Objects = append(result.Objects, toAPI(schema, item, nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
result.Revision = key.revision
|
result.Revision = key.revision
|
||||||
|
Loading…
Reference in New Issue
Block a user