mirror of
https://github.com/rancher/steve.git
synced 2025-09-04 17:01:16 +00:00
Merge pull request #190 from JonCrowther/fix-race-condition-2.8
[2.8 Backport] Fix data race
This commit is contained in:
@@ -181,7 +181,7 @@ func (s *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, w types.
|
|||||||
|
|
||||||
counts[schema.ID] = itemCount
|
counts[schema.ID] = itemCount
|
||||||
changedCount := map[string]ItemCount{
|
changedCount := map[string]ItemCount{
|
||||||
schema.ID: itemCount,
|
schema.ID: *itemCount.DeepCopy(),
|
||||||
}
|
}
|
||||||
|
|
||||||
result <- Count{
|
result <- Count{
|
||||||
|
Reference in New Issue
Block a user