Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovinda committed Dec 13, 2024
1 parent 4dca544 commit bb8c81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def deep_update(a, b):
threshold_megabytes: {{WALE_BACKUP_THRESHOLD_MEGABYTES}}
threshold_backup_size_percentage: {{WALE_BACKUP_THRESHOLD_PERCENTAGE}}
retries: 2
no_master: 1
no_leader: 1
{{/STANDBY_WITH_WALE}}
'''

Expand Down
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/on_role_change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ shift


readonly dbname=postgres
if [[ "${*: -3:1}" == "on_role_change" && "${*: -2:1}" == "master" ]]; then
if [[ "${*: -3:1}" == "on_role_change" && "${*: -2:1}" == "primary" ]]; then
num=30 # wait 30 seconds for end of recovery
while [[ $((num--)) -gt 0 ]]; do
if [[ "$(psql -d $dbname -tAc 'SELECT pg_catalog.pg_is_in_recovery()')" == "f" ]]; then
Expand Down

0 comments on commit bb8c81f

Please sign in to comment.