]> granicus.if.org Git - postgresql/commit
Before exiting walreceiver, fsync() all the WAL received.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 17 Jan 2011 10:22:24 +0000 (12:22 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 17 Jan 2011 10:27:35 +0000 (12:27 +0200)
commit34ef02b4d4c06e2bae6ad09cfd6d9c097eb73743
tree87ff48f2fb375a966dc7adac1666fbd199f56c0f
parente0c274679cb50064a92472c94c7ef5849a156536
Before exiting walreceiver, fsync() all the WAL received.

Otherwise WAL recovery will replay the un-flushed WAL after walreceiver has
exited, which can lead to a non-recoverable standby if the system crashes hard
at that point.
src/backend/replication/walreceiver.c