diff --git a/internal/config/storageclass/storage-class.go b/internal/config/storageclass/storage-class.go index 5f8f4246c..15580a6aa 100644 --- a/internal/config/storageclass/storage-class.go +++ b/internal/config/storageclass/storage-class.go @@ -228,7 +228,7 @@ func validateParity(ssParity, rrsParity, setDriveCount int) (err error) { // // is returned, the caller is expected to choose the right parity // at that point. -func (sCfg Config) GetParityForSC(sc string) (parity int) { +func (sCfg *Config) GetParityForSC(sc string) (parity int) { ConfigLock.RLock() defer ConfigLock.RUnlock() switch strings.TrimSpace(sc) {