提交 e9590707 编写于 作者: H Heikki Linnakangas

Put back important code that went missing in the 8.3 merge.

Without this, a standby server gets stuck in an infinite loop, trying to
recover from a file in pg_xlog. It will also quickly fill all available disk
space by printing "record with zero len" messages in the log.

Reported off-list by Michael Kent, analysis by Amil Khanzada, Jimmy Yih, and
others.
上级 ec7ad5dc
......@@ -4422,6 +4422,12 @@ next_record_is_invalid:
failedSources |= readSource;
if (readFile >= 0)
{
close(readFile);
readFile = -1;
}
nextRecord = NULL;
/* In standby-mode, keep trying */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册