influxdb/services/continuous_querier
Joe LeGasse a95647b720 cleanup: remove poor usage of ',ok' with maps
There are several places in the code where comma-ok map retrieval was
being used poorly. Some were benign, like checking existence before
issuing an unconditional delete with no cleanup. Others were potentially
far more serious: assuming that if 'ok' was true, then the resulting
pointer retrieved from the map would be non-nil. `nil` is a perfectly
valid value to store in a map of pointers, and the comma-ok syntax is
meant for when membership is distinct from having a non-zero value.
There was only one or two cases that I saw that being used correctly for
maps of pointers.
2017-08-30 09:49:31 -04:00
..
config.go CQ statistics written to monitor database, addresses #8188 2017-06-10 09:20:38 +08:00
config_test.go Add more config validation 2017-01-10 10:28:49 -08:00
continuous_queries.md Tidy up README 2016-02-10 11:50:42 +00:00
service.go cleanup: remove poor usage of ',ok' with maps 2017-08-30 09:49:31 -04:00
service_test.go Remove TimeRange function and replace with a more accurate ConditionExpr function 2017-08-16 16:45:35 -05:00