Skip to content

Commit

Permalink
add primary option to integrate with patroni 4
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovinda committed Dec 13, 2024
1 parent aab9470 commit 19a950e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/majorversionupgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 19a950e

Please sign in to comment.