Skip to content

Commit

Permalink
fix: make sure override.conf is filled before running pg_rewind
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
  • Loading branch information
mnencia committed Jan 26, 2024
1 parent 6727599 commit 1b83f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/management/postgres/instance_replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (instance *Instance) RefreshReplicaConfiguration(
return changed, err
}

if primary {
if primary && cluster.Status.TargetPrimary == instance.PodName {
return changed, nil
}

Expand Down

0 comments on commit 1b83f40

Please sign in to comment.