mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Add cache config for configuration comparison (#5812)
This commit is contained in:
parent
75f35b926d
commit
42f775af4f
@ -139,6 +139,8 @@ func (s *serverConfig) ConfigDiff(t *serverConfig) string {
|
||||
return "Domain configuration differs"
|
||||
case s.StorageClass != t.StorageClass:
|
||||
return "StorageClass configuration differs"
|
||||
case !reflect.DeepEqual(s.Cache, t.Cache):
|
||||
return "Cache configuration differs"
|
||||
case !reflect.DeepEqual(s.Notify.AMQP, t.Notify.AMQP):
|
||||
return "AMQP Notification configuration differs"
|
||||
case !reflect.DeepEqual(s.Notify.NATS, t.Notify.NATS):
|
||||
|
@ -580,7 +580,10 @@ type serverConfigV22 struct {
|
||||
Notify notifier `json:"notify"`
|
||||
}
|
||||
|
||||
// serverConfigV23 is just like version '22' with addition of cache field
|
||||
// serverConfigV23 is just like version '22' with addition of cache field.
|
||||
//
|
||||
// IMPORTANT NOTE: When updating this struct make sure that
|
||||
// serverConfig.ConfigDiff() is updated as necessary.
|
||||
type serverConfigV23 struct {
|
||||
Version string `json:"version"`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user