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

Commita8be536

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

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 forXLogRead */
935+
/* setup state forWalSndSegmentOpen */
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 ofXLogRead(). And in any case
2637+
* given the current implementation ofWALRead(). 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)

[8]ページ先頭

©2009-2025 Movatter.jp