influxdb/services/meta
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
..
internal Update source files to pass vet checks for go 1.7 2016-09-14 15:01:22 -05:00
client.go initial fga work 2017-05-26 13:16:27 -07:00
client_test.go initial fga work 2017-05-26 13:16:27 -07:00
config.go Report subset of config values in SHOW DIAGNOSTICS 2017-03-14 11:34:19 -07:00
config_test.go in memory meta, single node configs, etc. 2016-03-14 16:55:54 +00:00
data.go cleanup: remove poor usage of ',ok' with maps 2017-08-30 09:49:31 -04:00
data_internal_test.go remove unused NewShardOwner func 2017-05-25 11:37:08 -04:00
data_test.go Ensure privileges can't be set on non-existent DB 2017-06-26 14:15:52 +01:00
errors.go Add db/rp name validation 2017-01-12 17:38:10 -05:00
file_unix.go Add platform specific override for file rename. 2016-03-18 21:45:29 +05:30
file_windows.go Remove redundant windows build tags 2016-05-03 14:22:02 +01:00
meta_test.go Update authentication cache to work for clusters 2016-02-12 07:16:57 -05:00
query_authorizer.go initial fga work 2017-05-26 13:16:27 -07:00
write_authorizer.go Allow non-admin users to execute SHOW DATABASES 2017-02-13 08:59:16 -08:00