Skip to content

Commit 24c3c03

Browse files
committed
Update 'no_master' option to 'no_leader'
- https://github.com/patroni/patroni/blob/master/docs/releases.rst?plain=1#L134 Issue: PGO-1646
1 parent c8eda9f commit 24c3c03

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/patroni/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ func instanceYAML(
565565
postgresql[pgBackRestCreateReplicaMethod] = map[string]any{
566566
"command": strings.Join(quoted, " "),
567567
"keep_data": true,
568-
"no_master": true,
568+
"no_leader": true,
569569
"no_params": true,
570570
}
571571
methods = append([]string{pgBackRestCreateReplicaMethod}, methods...)

internal/patroni/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ acquiring the leader lock, the Patroni leader:
214214
| - | postgresql.basebackup | Yes | mutable | either | List of arguments to pass to pg_basebackup when using the `basebackup` replica method.
215215
| - | postgresql.{method}.command | Yes¹ | mutable | either | Command to execute for this replica method.
216216
| - | postgresql.{method}.keep_data | Yes¹ | mutable | either | Whether or not Patroni should empty the data directory before. (default: false)
217-
| - | postgresql.{method}.no_master | Yes¹ | mutable | either | Whether or not Patroni can call this method when no instances are running. (default: false)
217+
| - | postgresql.{method}.no_leader | Yes¹ | mutable | either | Whether or not Patroni can call this method when no instances are running. (default: false)
218218
| - | postgresql.{method}.no_params | Yes¹ | mutable | either | Whether or not Patroni should pass extra arguments to the command. (default: false)
219219
||
220220
|||||| https://github.com/zalando/patroni/blob/v2.0.1/docs/replica_bootstrap.rst#bootstrap

internal/patroni/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ postgresql:
906906
command: '''bash'' ''-ceu'' ''--'' ''install --directory --mode=0700 "${PGDATA?}"
907907
&& exec "$@"'' ''-'' ''some'' ''backrest'' ''cmd'''
908908
keep_data: true
909-
no_master: true
909+
no_leader: true
910910
no_params: true
911911
pgpass: /tmp/.pgpass
912912
use_unix_socket: true

0 commit comments

Comments
 (0)