From: Heikki Linnakangas Date: Tue, 9 Oct 2012 16:33:12 +0000 (+0300) Subject: Fix silly bug in previous refactoring. X-Git-Tag: REL9_3_BETA1~803 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d8c81ac867d919b7d11120b01a6a327fef6a2ef;p=postgresql 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... --- 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); }