This commit is contained in:
Sergey Dudoladov
2020-04-20 14:05:33 +02:00
parent 3b382f6f34
commit 0c5dfeab06
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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