Skip to content

Commit a8be536

Browse files
committed
Fix obsolete references to "XLogRead"
The one in xlogreader.h was pointed out by Antonin Houska; I (Álvaro) noticed the others by grepping. Author: Antonin Houska <ah@cybertec.at> Discussion: https://postgr.es/m/28250.1589186654@antos
1 parent 7a9c9ce commit a8be536

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/replication/walsender.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ CreateReplicationSlot(CreateReplicationSlotCmd *cmd)
932932

933933
parseCreateReplSlotOptions(cmd, &reserve_wal, &snapshot_action);
934934

935-
/* setup state for XLogRead */
935+
/* setup state for WalSndSegmentOpen */
936936
sendTimeLineIsHistoric = false;
937937
sendTimeLine = ThisTimeLineID;
938938

@@ -2634,7 +2634,7 @@ XLogSendPhysical(void)
26342634
*
26352635
* Attempt to send all data that's already been written out and
26362636
* fsync'd to disk. We cannot go further than what's been written out
2637-
* given the current implementation of XLogRead(). And in any case
2637+
* given the current implementation of WALRead(). And in any case
26382638
* it's unsafe to send WAL that is not securely down to disk on the
26392639
* master: if the master subsequently crashes and restarts, standbys
26402640
* must not have applied any WAL that got lost on the master.

src/include/access/xlogreader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ typedef struct XLogReaderRoutine
103103
*
104104
* "segcxt" is additional information about the segment.
105105
*
106-
* "tli_p" is an input/output argument. XLogRead() uses it to pass the
106+
* "tli_p" is an input/output argument. WALRead() uses it to pass the
107107
* timeline in which the new segment should be found, but the callback can
108108
* use it to return the TLI that it actually opened.
109109
*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy