mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
update steps to make changes to config.json (#5292)
This commit is contained in:
parent
819d1e80c6
commit
a182fe8c15
@ -29,8 +29,8 @@ import (
|
||||
|
||||
// Steps to move from version N to version N+1
|
||||
// 1. Add new struct serverConfigVN+1 in config-versions.go
|
||||
// 2. Set configCurrentVersion to "N+1"
|
||||
// 3. Set serverConfigCurrent to serverConfigVN+1
|
||||
// 2. Set serverConfigVersion to "N+1"
|
||||
// 3. Set serverConfig to serverConfigVN+1
|
||||
// 4. Add new migration function (ex. func migrateVNToVN+1()) in config-migrate.go
|
||||
// 5. Call migrateVNToVN+1() from migrateConfig() in config-migrate.go
|
||||
// 6. Make changes in config-current_test.go for any test change
|
||||
|
@ -1616,7 +1616,7 @@ func migrateV20ToV21() error {
|
||||
srvConfig := &serverConfigV21{
|
||||
Notify: ¬ifier{},
|
||||
}
|
||||
srvConfig.Version = serverConfigVersion
|
||||
srvConfig.Version = "21"
|
||||
srvConfig.Credential = cv20.Credential
|
||||
srvConfig.Region = cv20.Region
|
||||
if srvConfig.Region == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user