Files
docker-cli/components/engine/daemon
Kir Kolyshkin d8a82d08f1 daemon.cleanupMetricsPlugins(): fix
A linter (vet) found the following bug in the code:

> daemon/metrics.go:124::error: range variable p captured by func literal (vet)

Here a variable p is used in an async fashion by goroutine, and most
probably by the time of use it is set to the last element of a range.

For example, the following code

```go
	for _, c := range []string{"here ", "we ", "go"} {
		go func() {
			fmt.Print(c)
		}()
	}
```

will print `gogogo` rather than `here we go` as one would expect.

Fixes: 0e8e8f0f31 ("Add support for metrics plugins")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Upstream-commit: 9db2c62488734a44a4f1bb9a0252c520b787acfe
Component: engine
2018-01-16 15:15:11 -08:00
..
2018-01-15 00:42:25 +01:00
2017-09-08 18:23:21 -04:00
2018-01-09 12:00:28 -05:00
2017-12-18 17:41:53 +01:00
2017-12-18 17:22:25 +01:00
2017-10-18 10:26:58 +08:00
2017-12-18 17:41:53 +01:00
2017-09-06 12:05:19 -04:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2018-01-09 14:25:33 -08:00
2017-07-31 13:16:46 -07:00
2016-10-28 11:06:54 -07:00
2018-01-11 21:21:43 -05:00
2017-12-18 17:41:53 +01:00
2017-12-18 17:41:53 +01:00
2017-07-31 13:16:46 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2018-01-15 00:42:25 +01:00
2017-07-31 13:16:46 -07:00
2017-10-19 11:09:29 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2018-01-11 21:21:43 -05:00
2017-08-18 17:09:27 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-11-03 01:46:58 +01:00
2017-12-18 17:22:25 +01:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-07-18 12:09:26 +08:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2018-01-16 15:15:11 -08:00
2018-01-11 21:21:43 -05:00
2018-01-15 00:42:25 +01:00
2018-01-15 21:35:30 +00:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2016-12-27 21:46:52 +08:00
2017-07-31 13:16:46 -07:00
2017-12-18 17:41:53 +01:00
2017-12-18 17:41:53 +01:00
2017-07-31 13:16:46 -07:00
2017-12-18 17:41:53 +01:00
2018-01-11 21:21:43 -05:00
2017-10-24 15:39:34 -04:00
2018-01-11 21:21:43 -05:00
2017-09-06 12:05:19 -04:00
2017-09-06 12:05:19 -04:00
2018-01-15 00:42:25 +01:00
2017-12-18 17:22:25 +01:00
2017-12-18 17:22:25 +01:00
2018-01-11 21:21:43 -05:00
2017-07-03 13:13:09 -07:00
2017-12-18 17:41:53 +01:00
2018-01-11 21:21:43 -05:00
2017-05-16 15:11:39 -07:00
2017-06-07 11:45:33 -04:00