fix: update storage-class properly

fixes #14005
This commit is contained in:
Harshavardhana 2021-12-28 22:48:43 -08:00 committed by Minio Trusted
parent 4da641533d
commit 46fd9f4a53

View File

@ -234,7 +234,7 @@ func (sCfg Config) GetParityForSC(sc string) (parity int) {
}
// Update update storage-class with new config
func (sCfg Config) Update(newCfg Config) {
func (sCfg *Config) Update(newCfg Config) {
ConfigLock.Lock()
defer ConfigLock.Unlock()
sCfg.RRS = newCfg.RRS