mirror of https://github.com/minio/minio.git
Hold lock on GetGlobalStateKey() - fixes #652
This commit is contained in:
parent
b793f53d48
commit
e9a3fd677a
|
@ -87,7 +87,9 @@ func GetGlobalState() map[string]string {
|
|||
|
||||
// GetGlobalStateKey - get value for key from globalState struct
|
||||
func GetGlobalStateKey(k string) string {
|
||||
globalState.RLock()
|
||||
result, ok := globalState.m[k]
|
||||
globalState.RUnlock()
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue