mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
Report error code on follow/rejoin failure due to non-available slot
Previously, if "repmgr standby follow" or "repmgr node rejoin" failed due to a replication slot not being available, no error code was returned.
This commit is contained in:
4
HISTORY
4
HISTORY
@@ -2,9 +2,11 @@
|
|||||||
repmgr: remove BDR 2.x support
|
repmgr: remove BDR 2.x support
|
||||||
repmgr: don't query upstream's data directory (Ian)
|
repmgr: don't query upstream's data directory (Ian)
|
||||||
repmgr: rename --recovery-conf-only to --replication-conf-only (Ian)
|
repmgr: rename --recovery-conf-only to --replication-conf-only (Ian)
|
||||||
repmgr: ensure postgresql.auto.conf is created with corretc permissions (Ian)
|
repmgr: ensure postgresql.auto.conf is created with correct permissions (Ian)
|
||||||
repmgr: minimize requirement to check upstream data directory location
|
repmgr: minimize requirement to check upstream data directory location
|
||||||
during "standby clone" (Ian)
|
during "standby clone" (Ian)
|
||||||
|
repmgr: report error code on follow/rejoin failure due to non-available
|
||||||
|
replication slot (Ian)
|
||||||
|
|
||||||
5.0 2019-10-15
|
5.0 2019-10-15
|
||||||
general: add PostgreSQL 12 support (Ian)
|
general: add PostgreSQL 12 support (Ian)
|
||||||
|
|||||||
@@ -45,6 +45,22 @@
|
|||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Bug fixes</title>
|
||||||
|
<para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<link linkend="repmgr-standby-follow"><command>repmgr standby follow</command></link> and
|
||||||
|
<link linkend="repmgr-node-rejoin"><command>repmgr node rejoin</command></link> will now return
|
||||||
|
an error code if the operation fails if a replication slot is not available or cannot
|
||||||
|
be created on the follow/rejoin target.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
</sect2>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1 id="release-5.0">
|
<sect1 id="release-5.0">
|
||||||
|
|||||||
@@ -3142,6 +3142,8 @@ do_standby_follow_internal(PGconn *primary_conn, PGconn *follow_target_conn, t_n
|
|||||||
{
|
{
|
||||||
log_error("%s", output->data);
|
log_error("%s", output->data);
|
||||||
|
|
||||||
|
*error_code = general_error_code;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user