Avoid 'FATAL: out of free buffers: time to abort !" error

during WAL recovery.  Recovery failure is always serious.
This commit is contained in:
Hiroshi Inoue 2001-02-22 08:59:40 +00:00
parent b200d0993d
commit 50e3c60b95

View File

@ -198,6 +198,8 @@ XLogReadBuffer(bool extend, Relation reln, BlockNumber blkno)
Assert(InRecovery);
while (lastblock <= blkno)
{
if (buffer != InvalidBuffer)
ReleaseBuffer(buffer); /* must be WriteBuffer()? */
buffer = ReadBuffer(reln, P_NEW);
lastblock++;
}