Skip to content

Commit

Permalink
pgBackRest: Fix timeline divergence after PITR (#820)
Browse files Browse the repository at this point in the history
Changing the target-action parameter from shutdown to pause
  • Loading branch information
SDV109 authored Nov 28, 2024
1 parent 471d474 commit 90948bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/roles/patroni/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@
- name: Run "{{ pgbackrest_patroni_cluster_restore_command }}" on Replica
ansible.builtin.command: >
{{ pgbackrest_patroni_cluster_restore_command }}
{{ '--target-action=shutdown' if pgbackrest_patroni_cluster_restore_command is search('--type=') else '' }}
{{ '--target-action=pause' if pgbackrest_patroni_cluster_restore_command is search('--type=') else '' }}
async: "{{ cluster_restore_timeout | default(86400) }}" # timeout 24 hours
poll: 0
register: pgbackrest_restore_replica
Expand Down

0 comments on commit 90948bc

Please sign in to comment.