Skip to content

Commit 19a950e

Browse files
committed
add primary option to integrate with patroni 4
1 parent aab9470 commit 19a950e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cluster/majorversionupgrade.go

+1-1
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)