Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd194d7a

Browse files
committed
Fix bug in streaming replication over multiple tli switches.
After receiving some WAL over streaming replication, try to open the filefrom the timeline we're currently recieving, not recoveryTargetTLI. Theyare usually the same, which is why wasn't noticed before, but you'd getan error if there have been more than one timeline switch between thecurrent point in WAL and the recovery target.
1 parent4ffd589 commitd194d7a

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9745,7 +9745,7 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
97459745
if (readFile<0)
97469746
{
97479747
readFile=XLogFileRead(readSegNo,PANIC,
9748-
recoveryTargetTLI,
9748+
receiveTLI,
97499749
XLOG_FROM_STREAM, false);
97509750
Assert(readFile >=0);
97519751
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp