pgsql: Ensure cleanup in case of early errors in streaming base backups - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Ensure cleanup in case of early errors in streaming base backups
Date
Msg-id E1Wpbfo-0004Ee-1K@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Ensure cleanup in case of early errors in streaming base backups

Move the code that sends the initial status information as well as the
calculation of paths inside the ENSURE_ERROR_CLEANUP block. If this code
failed, we would "leak" a counter of number of concurrent backups, thereby
making the system always believe it was in backup mode. This could happen
if the sending failed (which it probably never did given that the small
amount of data to send would never cause a flush). It is very low risk, but
all operations after do_pg_start_backup should be protected.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/433cacfc0f1bf245a13df60da4bded02c5b61165

Modified Files
--------------
src/backend/replication/basebackup.c |    3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: doc: improve markup of ssl_ecdh_curve commit
Next
From: Magnus Hagander
Date:
Subject: pgsql: Ensure cleanup in case of early errors in streaming base backups