Skip to content

Commit 746afb2

Browse files
authored
Fix "Current State" to "Reported State", and a docs cross-ref. (#820)
1 parent 382009e commit 746afb2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ health checks and the retry policy.
1818
See the :ref:`configuration` part for more information about how to setup
1919
the different delays and timeouts that are involved in the decision making.
2020

21-
See also :ref:`pg_autoctl watch` to have a dashboard that helps
21+
See also :ref:`pg_autoctl_watch` to have a dashboard that helps
2222
understanding the system and what's going on in the moment.
2323

2424
The secondary is blocked in the CATCHING_UP state, what should I do?

docs/ref/pg_autoctl_show_state.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ The ``pg_autoctl show state`` output includes the following columns:
111111
to connect to this node, and ``?`` when the monitor didn't connect to
112112
the node yet.
113113

114-
- Current State
114+
- Reported State
115115

116-
The current FSM state as reported to the monitor by the pg_autoctl
117-
process running on the Postgres node.
116+
The latest reported FSM state, as reported to the monitor by the
117+
pg_autoctl process running on the Postgres node.
118118

119119
- Assigned State
120120

@@ -130,14 +130,14 @@ Examples
130130
::
131131

132132
$ pg_autoctl show state
133-
Name | Node | Host:Port | TLI: LSN | Connection | Current State | Assigned State
133+
Name | Node | Host:Port | TLI: LSN | Connection | Reported State | Assigned State
134134
------+-------+----------------+----------------+--------------+---------------------+--------------------
135135
node1 | 1 | localhost:5501 | 1: 0/4000678 | read-write | primary | primary
136136
node2 | 2 | localhost:5502 | 1: 0/4000678 | read-only | secondary | secondary
137137
node3 | 3 | localhost:5503 | 1: 0/4000678 | read-only | secondary | secondary
138138

139139
$ pg_autoctl show state --local
140-
Name | Node | Host:Port | TLI: LSN | Connection | Current State | Assigned State
140+
Name | Node | Host:Port | TLI: LSN | Connection | Reported State | Assigned State
141141
------+-------+----------------+----------------+--------------+---------------------+--------------------
142142
node1 | 1 | localhost:5501 | 1: 0/4000678 | read-write ? | primary | primary
143143

src/bin/pg_autoctl/nodestate_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ nodestatePrintHeader(NodeAddressHeaders *headers)
209209
headers->maxHostSize, "Host:Port",
210210
headers->maxLSNSize, "TLI: LSN",
211211
headers->maxHealthSize, "Connection",
212-
headers->maxStateSize, "Current State",
212+
headers->maxStateSize, "Reported State",
213213
headers->maxStateSize, "Assigned State");
214214

215215
fformat(stdout, "%*s-+-%*s-+-%*s-+-%*s-+-%*s-+-%*s-+-%*s\n",

0 commit comments

Comments
 (0)