Skip to content

Commit c02767d

Browse files
committed
Remove unused parameter
Apparently, this was never used when introduced (3dad73e). Discussion: https://www.postgresql.org/message-id/flat/511bb100-f829-ba21-2f10-9f952ec06ead%402ndquadrant.com
1 parent beff361 commit c02767d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/bin/pg_basebackup/receivelog.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ static bool ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, i
4646
XLogRecPtr *blockpos);
4747
static PGresult *HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf,
4848
XLogRecPtr blockpos, XLogRecPtr *stoppos);
49-
static bool CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos,
50-
XLogRecPtr *stoppos);
49+
static bool CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos);
5150
static long CalculateCopyStreamSleeptime(TimestampTz now, int standby_message_timeout,
5251
TimestampTz last_status);
5352

@@ -747,7 +746,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream,
747746
/*
748747
* Check if we should continue streaming, or abort at this point.
749748
*/
750-
if (!CheckCopyStreamStop(conn, stream, blockpos, stoppos))
749+
if (!CheckCopyStreamStop(conn, stream, blockpos))
751750
goto error;
752751

753752
now = feGetCurrentTimestamp();
@@ -825,7 +824,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream,
825824
* Check if we should continue streaming, or abort at this
826825
* point.
827826
*/
828-
if (!CheckCopyStreamStop(conn, stream, blockpos, stoppos))
827+
if (!CheckCopyStreamStop(conn, stream, blockpos))
829828
goto error;
830829
}
831830
else
@@ -1203,8 +1202,7 @@ HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf,
12031202
* Check if we should continue streaming, or abort at this point.
12041203
*/
12051204
static bool
1206-
CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos,
1207-
XLogRecPtr *stoppos)
1205+
CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos)
12081206
{
12091207
if (still_sending && stream->stream_stop(blockpos, stream->timeline, false))
12101208
{

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