Harshavardhana b1ad99edbf
fix: avoid crash copy map before reading (#8825)
code of this form is always racy, when the
map itself is being written to as well

```
func (r Map) retMap() map[string]string {
     .. lock ..
     return r.internalMap
}

func (r Map) addMap(k, v string) {
     .. lock ..
     r.internalMap[k] = v
}
```

Anyone reading from `retMap()` is not protected
because of locking and we need to make sure
to avoid code in this manner. Always safe to
copy the map and return.
2020-01-16 01:35:30 -08:00
..
2019-12-28 22:24:43 +05:30
2019-12-12 10:01:15 -08:00
2020-01-13 13:09:10 -08:00
2020-01-08 17:21:58 -08:00
2020-01-02 20:18:32 +05:30
2019-09-10 04:42:29 +05:30
2020-01-14 16:18:45 -08:00
2020-01-15 18:30:32 -08:00
2020-01-15 18:30:32 -08:00