moby/daemon/graphdriver/quota
Kir Kolyshkin b0f01be33f projectquota: protect concurrent map access
Protect access to q.quotas map, and lock around changing nextProjectID.

Techinically, the lock in findNextProjectID() is not needed as it is
only called during initialization, but one can never be too careful.

Fixes: 52897d1c09 ("projectquota: utility class for project quota controls")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 1ac0a66a64)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2019-08-06 12:06:08 -07:00
..
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
projectquota.go projectquota: protect concurrent map access 2019-08-06 12:06:08 -07:00
projectquota_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
projectquota_unsupported.go quota: add noncgo build tag 2019-08-01 14:38:02 -07:00
types.go projectquota: protect concurrent map access 2019-08-06 12:06:08 -07:00