]> granicus.if.org Git - postgresql/commitdiff
Fix silly bug in previous refactoring.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 9 Oct 2012 16:33:12 +0000 (19:33 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 9 Oct 2012 16:33:12 +0000 (19:33 +0300)
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

index 17ceda3b1ad311776e108307a3f4cc2f1247a2b9..d251d08b1903b98603517084309184b11649f488 100644 (file)
@@ -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);
                                }