moby/daemon/graphdriver/quota
Kir Kolyshkin 1ac0a66a64 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>
2019-08-01 09:58:34 -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-01 09:58:34 -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-06-05 22:21:06 -07:00
types.go projectquota: protect concurrent map access 2019-08-01 09:58:34 -07:00