refactor state so that per-backend state is separate
commit5d46a572a762c2e2ccf8b7b4322cb140c8aa9f0b
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Dec 2014 22:27:11 +0000 (14 23:27 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Dec 2014 22:28:12 +0000 (14 23:28 +0100)
tree1721b7413ae825911c81f4442ad46fe10ca7cc75
parentf7fc49ab5759bed73a5afde41fac06f66fe3f525
refactor state so that per-backend state is separate

This allows us to prevent locking the stateMu on every storeResult()
call, as instead each of the storeResult() calls will just write to the
state for the backend it was called for.
cmd/dcs-web/querymanager.go
cmd/dcs-web/templates/queryz.html