]> granicus.if.org Git - postgresql/commit
Fix race condition if a file is removed while pg_basebackup is running.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 21 Dec 2012 13:29:49 +0000 (15:29 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 21 Dec 2012 13:34:15 +0000 (15:34 +0200)
commit36e4456d78b6a27cdaf82280b98998fc3bf3e9c7
tree9db498ad63c0392ff361c82829893c1ea2d71e2c
parentd57a97343ecec89ecb7d932c21c886058ad64e6b
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.
src/backend/replication/basebackup.c