Skip to content

Commit a7ee9d3

Browse files
authored
Merge pull request #65 from cybertec-postgresql/majorupgradefixPatroni4.x
fix for majorupgrade with patroni > 3.x
2 parents 708e991 + 2ad981d commit a7ee9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cluster/majorversionupgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (c *Cluster) majorVersionUpgrade() error {
9393
c.logger.Infof("identified non running pod, potentially skipping major version upgrade")
9494
}
9595

96-
if ps.Role == "master" {
96+
if ps.Role == "master" || ps.Role == "primary" {
9797
masterPod = &pods[i]
9898
c.currentMajorVersion = ps.ServerVersion
9999
}

0 commit comments

Comments
 (0)