influxdb/services
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
..
collectd 8426: updated code based on pull-request feedback 2017-06-23 14:59:01 -04:00
continuous_querier cleanup: remove poor usage of ',ok' with maps 2017-08-30 09:49:31 -04:00
graphite initial fga work 2017-05-26 13:16:27 -07:00
httpd cleanup: remove poor usage of ',ok' with maps 2017-08-30 09:49:31 -04:00
meta cleanup: remove poor usage of ',ok' with maps 2017-08-30 09:49:31 -04:00
opentsdb initial fga work 2017-05-26 13:16:27 -07:00
precreator Report subset of config values in SHOW DIAGNOSTICS 2017-03-14 11:34:19 -07:00
retention Merge remote-tracking branch 'upstream/master' into tsi 2017-03-15 10:13:32 -06:00
snapshotter Rename zap import back to github.com/uber-go/zap 2017-02-17 17:17:22 -06:00
subscriber Make services/subscriber golintable 2017-04-03 18:32:36 -04:00
udp Update udp port to be in valid range 2017-07-27 13:26:37 +01:00