432
newEntries[clusterName] = ShallowCopyClusterInformation(newClusterInfo)
433
} else if newClusterInfo.version > oldClusterInfo.version {
434
>
if newClusterInfo.Enabled == oldClusterInfo.Enabled &&
metadata.go
435
>
newClusterInfo.ReplicationEnabled == oldClusterInfo.ReplicationEnabled &&
436
>
newClusterInfo.RPCAddress == oldClusterInfo.RPCAddress &&
437
>
newClusterInfo.HTTPAddress == oldClusterInfo.HTTPAddress &&
438
>
newClusterInfo.InitialFailoverVersion == oldClusterInfo.InitialFailoverVersion &&
439
>
newClusterInfo.ClusterID == oldClusterInfo.ClusterID &&
440
>
maps.Equal(newClusterInfo.Tags, oldClusterInfo.Tags) {
441
// key cluster info does not change
442
continue
443
}
444
// handle updated cluster registry
445
>
oldEntries[clusterName] = ShallowCopyClusterInformation(&oldClusterInfo)
metadata.go
446
>
newEntries[clusterName] = ShallowCopyClusterInformation(newClusterInfo)
447
}
448
}
449
for clusterName, oldClusterInfo := range clusterInfoMap {
450
if _, ok := clusterMetadataMap[clusterName]; !ok {
452
>
oldEntries[clusterName] = &oldClusterInfo
453
>
newEntries[clusterName] = nil
454
>
}
455
}
456