Skip to content

Commit

Permalink
Fix "Current State" to "Reported State", and a docs cross-ref. (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimCitus committed Oct 21, 2021
1 parent 382009e commit 746afb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ health checks and the retry policy.
See the :ref:`configuration` part for more information about how to setup
the different delays and timeouts that are involved in the decision making.

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

The secondary is blocked in the CATCHING_UP state, what should I do?
Expand Down
10 changes: 5 additions & 5 deletions docs/ref/pg_autoctl_show_state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ The ``pg_autoctl show state`` output includes the following columns:
to connect to this node, and ``?`` when the monitor didn't connect to
the node yet.

- Current State
- Reported State

The current FSM state as reported to the monitor by the pg_autoctl
process running on the Postgres node.
The latest reported FSM state, as reported to the monitor by the
pg_autoctl process running on the Postgres node.

- Assigned State

Expand All @@ -130,14 +130,14 @@ Examples
::

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/bin/pg_autoctl/nodestate_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ nodestatePrintHeader(NodeAddressHeaders *headers)
headers->maxHostSize, "Host:Port",
headers->maxLSNSize, "TLI: LSN",
headers->maxHealthSize, "Connection",
headers->maxStateSize, "Current State",
headers->maxStateSize, "Reported State",
headers->maxStateSize, "Assigned State");

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

0 comments on commit 746afb2

Please sign in to comment.