From 2d8c81ac867d919b7d11120b01a6a327fef6a2ef Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 9 Oct 2012 19:33:12 +0300 Subject: [PATCH] Fix silly bug in previous refactoring. I extracted the refactoring patch from a larger patch that contained other changes too, but missed one unintentional change and didn't test enough... --- src/backend/access/transam/xlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 17ceda3b1a..d251d08b19 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -9499,7 +9499,7 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess, if (readFile < 0) { readFile = XLogFileRead(readSegNo, PANIC, - curFileTLI, + recoveryTargetTLI, XLOG_FROM_STREAM, false); Assert(readFile >= 0); }