Apply storageClass data while config migration (#5737)

Fixes #5736
This commit is contained in:
Nitish Tiwari 2018-03-30 01:51:58 +05:30 committed by kannappanr
parent ef61b36c5a
commit 22e3ace36e

View File

@ -1934,6 +1934,10 @@ func migrateV22ToV23() error {
// Load domain config from existing config in the file.
srvConfig.Domain = cv22.Domain
// Load storage class config from existing storage class config in the file
srvConfig.StorageClass.RRS = cv22.StorageClass.RRS
srvConfig.StorageClass.Standard = cv22.StorageClass.Standard
// Init cache config.For future migration, Cache config needs to be copied over from previous version.
srvConfig.Cache.Drives = []string{}
srvConfig.Cache.Exclude = []string{}