Add details in script output in recovery mode

This commit is contained in:
Benjamin Renard 2024-06-03 15:43:17 +02:00
parent 8b03a8bc21
commit 5f9573612b
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -424,6 +424,9 @@ then
fi
echo "OK: Hot-standby server is uptodate"
echo "Replication state: $M_CUR_SYNC_STATE"
echo "Last sent/writed LSN: '$M_CUR_SENT_LSN' / '$M_CUR_WRITED_LSN'"
[ "$LAST_RECEIVED_LSN" != "$LAST_REPLAYED_LSN" ] && echo "Replay delay: ${REPLAY_DELAY}s"
exit 0
else
debug "File recovery.conf not found. Master mode."