mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 09:17:15 +02:00
rename
This commit is contained in:
+1
-1
@@ -305,7 +305,7 @@ func (c *Cluster) isSafeToRecreatePods(pods *v1.PodList) bool {
|
||||
*/
|
||||
|
||||
for _, pod := range pods.Items {
|
||||
state, err := c.patroni.GetNodeState(&pod)
|
||||
state, err := c.patroni.GetPatroniMemberState(&pod)
|
||||
if err != nil || state == "creating replica" {
|
||||
c.logger.Warningf("cannot re-create replica %s: it is currently being initialized", pod.Name)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user