Skip to content

Commit fc9a260

Browse files
authored
Integrate spilo with Patroni 4 (#2818)
1 parent c206eb3 commit fc9a260

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
@@ -155,7 +155,7 @@ func (c *Cluster) majorVersionUpgrade() error {
155155
c.logger.Infof("identified non running pod, potentially skipping major version upgrade")
156156
}
157157

158-
if ps.Role == "master" {
158+
if ps.Role == "master" || ps.Role == "primary" {
159159
masterPod = &pods[i]
160160
c.currentMajorVersion = ps.ServerVersion
161161
}

0 commit comments

Comments
 (0)