Commit c02767d2 authored by Peter Eisentraut's avatar Peter Eisentraut

Remove unused parameter

Apparently, this was never used when
introduced (3dad73e7).

Discussion: https://www.postgresql.org/message-id/flat/511bb100-f829-ba21-2f10-9f952ec06ead%402ndquadrant.com
parent beff361b
...@@ -46,8 +46,7 @@ static bool ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, i ...@@ -46,8 +46,7 @@ static bool ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, i
XLogRecPtr *blockpos); XLogRecPtr *blockpos);
static PGresult *HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf, static PGresult *HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf,
XLogRecPtr blockpos, XLogRecPtr *stoppos); XLogRecPtr blockpos, XLogRecPtr *stoppos);
static bool CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos, static bool CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos);
XLogRecPtr *stoppos);
static long CalculateCopyStreamSleeptime(TimestampTz now, int standby_message_timeout, static long CalculateCopyStreamSleeptime(TimestampTz now, int standby_message_timeout,
TimestampTz last_status); TimestampTz last_status);
...@@ -747,7 +746,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream, ...@@ -747,7 +746,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream,
/* /*
* Check if we should continue streaming, or abort at this point. * Check if we should continue streaming, or abort at this point.
*/ */
if (!CheckCopyStreamStop(conn, stream, blockpos, stoppos)) if (!CheckCopyStreamStop(conn, stream, blockpos))
goto error; goto error;
now = feGetCurrentTimestamp(); now = feGetCurrentTimestamp();
...@@ -825,7 +824,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream, ...@@ -825,7 +824,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream,
* Check if we should continue streaming, or abort at this * Check if we should continue streaming, or abort at this
* point. * point.
*/ */
if (!CheckCopyStreamStop(conn, stream, blockpos, stoppos)) if (!CheckCopyStreamStop(conn, stream, blockpos))
goto error; goto error;
} }
else else
...@@ -1203,8 +1202,7 @@ HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf, ...@@ -1203,8 +1202,7 @@ HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf,
* Check if we should continue streaming, or abort at this point. * Check if we should continue streaming, or abort at this point.
*/ */
static bool static bool
CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos, CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos)
XLogRecPtr *stoppos)
{ {
if (still_sending && stream->stream_stop(blockpos, stream->timeline, false)) if (still_sending && stream->stream_stop(blockpos, stream->timeline, false))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment