Merge pull request #1162 from prometheus/fabxc-patch-2

Fix wrong lock
This commit is contained in:
Fabian Reinartz 2017-12-21 17:12:47 +01:00 committed by GitHub
commit 1fdfe9f807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ func (api *API) listAlerts(w http.ResponseWriter, r *http.Request) {
res = append(res, apiAlert)
}
api.mtx.Unlock()
api.mtx.RUnlock()
if err != nil {
api.respondError(w, apiError{