diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/logical/logicalfuncs.c | 5 | ||||
-rw-r--r-- | src/backend/replication/slotfuncs.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/replication/logical/logicalfuncs.c b/src/backend/replication/logical/logicalfuncs.c index e59939aad11..5a7fae4a87d 100644 --- a/src/backend/replication/logical/logicalfuncs.c +++ b/src/backend/replication/logical/logicalfuncs.c @@ -208,13 +208,12 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo fcinfo, bool confirm, bool bin rsinfo->setDesc = p->tupdesc; /* - * Compute the current end-of-wal and maintain ThisTimeLineID. - * RecoveryInProgress() will update ThisTimeLineID on promotion. + * Compute the current end-of-wal. */ if (!RecoveryInProgress()) end_of_wal = GetFlushRecPtr(); else - end_of_wal = GetXLogReplayRecPtr(&ThisTimeLineID); + end_of_wal = GetXLogReplayRecPtr(NULL); ReplicationSlotAcquire(NameStr(*name), true); diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index 17df99c2ace..877a006d503 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -627,7 +627,7 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS) if (!RecoveryInProgress()) moveto = Min(moveto, GetFlushRecPtr()); else - moveto = Min(moveto, GetXLogReplayRecPtr(&ThisTimeLineID)); + moveto = Min(moveto, GetXLogReplayRecPtr(NULL)); /* Acquire the slot so we "own" it */ ReplicationSlotAcquire(NameStr(*slotname), true); |