pgsql: Fix race condition if a file is removed while pg_basebackup is r

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix race condition if a file is removed while pg_basebackup is r
Date: 2012-12-21 13:37:24
Message-ID: E1Tm2my-0007V7-3R@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix race condition if a file is removed while pg_basebackup is running.

If a relation file was removed when the server-side counterpart of
pg_basebackup was just about to open it to send it to the client, you'd
get a "could not open file" error. Fix that.

Backpatch to 9.1, this goes back to when pg_basebackup was introduced.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/36e4456d78b6a27cdaf82280b98998fc3bf3e9c7

Modified Files
--------------
src/backend/replication/basebackup.c | 41 +++++++++++++++++++++++++--------
1 files changed, 31 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-12-21 18:11:43 pgsql: Fix sloppiness in the timeline switch over streaming replication
Previous Message Heikki Linnakangas 2012-12-21 07:32:51 pgsql: Forgot to remove extern declaration of GetRecoveryTargetTLI()