Integrate spilo with Patroni 4 (#2818)

This commit is contained in:
Ida Novindasari 2024-12-16 11:11:22 +01:00 committed by GitHub
parent c206eb38a8
commit fc9a26040a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (c *Cluster) majorVersionUpgrade() error {
c.logger.Infof("identified non running pod, potentially skipping major version upgrade")
}
if ps.Role == "master" {
if ps.Role == "master" || ps.Role == "primary" {
masterPod = &pods[i]
c.currentMajorVersion = ps.ServerVersion
}