mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-11-29 18:58:35 +08:00
slave support cross-timeline connect to new primary
This commit is contained in:
commit
e4c6e686e5
@ -14675,7 +14675,7 @@ producerXLogParallelBatchRead(XLogReaderState *xlogreader, XLogRecPtr startPtr,
|
||||
if (!WaitForWALToBecomeAvailable(readedUpto + reqLen,
|
||||
private->randAccess,
|
||||
private->fetching_ckpt,
|
||||
startPtr))
|
||||
readedUpto))
|
||||
{
|
||||
readLen = 0;
|
||||
readSource = XLOG_FROM_ANY;
|
||||
@ -15062,6 +15062,7 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
|
||||
tli, curFileTLI);
|
||||
}
|
||||
curFileTLI = tli;
|
||||
ThisTimeLineID = tli;
|
||||
RequestXLogStreaming(tli, ptr, PrimaryConnInfo,
|
||||
PrimarySlotName,
|
||||
wal_receiver_create_temp_slot);
|
||||
|
Loading…
Reference in New Issue
Block a user