diff --git a/internal/config/storageclass/storage-class.go b/internal/config/storageclass/storage-class.go index 6af2ffe39..f39965b67 100644 --- a/internal/config/storageclass/storage-class.go +++ b/internal/config/storageclass/storage-class.go @@ -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