OSDN Git Service

If a corrupt WAL record is received by streaming replication, disconnect
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Jun 2010 06:04:21 +0000 (06:04 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Jun 2010 06:04:21 +0000 (06:04 +0000)
commit6da07cd80dba3324feec2ee422b325d544e1be55
tree9f7e172e125bf4f5e77868d6d84dd66085724a0a
parent38736e22762e721306496c3713bf34c3c6ea3ae9
If a corrupt WAL record is received by streaming replication, disconnect
and retry. If the record is genuinely corrupt in the master database,
there's little hope of recovering, but it's better than simply retrying
to apply the corrupt WAL record in a tight loop without even trying to
retransmit it, which is what we used to do.
src/backend/access/transam/xlog.c