Prevent intermittent hang in recovery from bgwriter interaction.

Simon Riggs <simon@2ndQuadrant.com>

Commit: b98ac467f5d35970edade4ad65c767fc89059026
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2011-03-23T13:30:05Z
Releases: 9.1.0
Prevent intermittent hang in recovery from bgwriter interaction.
Startup process waited for cleanup lock but when hot_standby = off
the pid was not registered, so that the bgwriter would not wake
the waiting process as intended.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +2 −0
src/backend/storage/ipc/standby.c modified +0 −5