@@ -38,8 +38,8 @@ static int CopyStreamReceive(PGconn *conn, long timeout, pgsocket stop_socket,
3838 char * * buffer );
3939static bool ProcessKeepaliveMsg (PGconn * conn , StreamCtl * stream , char * copybuf ,
4040 int len , XLogRecPtr blockpos , TimestampTz * last_status );
41- static bool ProcessXLogDataMsg (PGconn * conn , StreamCtl * stream , char * copybuf , int len ,
42- XLogRecPtr * blockpos );
41+ static bool ProcessWALDataMsg (PGconn * conn , StreamCtl * stream , char * copybuf , int len ,
42+ XLogRecPtr * blockpos );
4343static PGresult * HandleEndOfCopyStream (PGconn * conn , StreamCtl * stream , char * copybuf ,
4444 XLogRecPtr blockpos , XLogRecPtr * stoppos );
4545static bool CheckCopyStreamStop (PGconn * conn , StreamCtl * stream , XLogRecPtr blockpos );
@@ -831,7 +831,7 @@ HandleCopyStream(PGconn *conn, StreamCtl *stream,
831831 }
832832 else if (copybuf [0 ] == 'w' )
833833 {
834- if (!ProcessXLogDataMsg (conn , stream , copybuf , r , & blockpos ))
834+ if (!ProcessWALDataMsg (conn , stream , copybuf , r , & blockpos ))
835835 goto error ;
836836
837837 /*
@@ -1041,11 +1041,11 @@ ProcessKeepaliveMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len,
10411041}
10421042
10431043/*
1044- * Process XLogData message.
1044+ * Process WALData message.
10451045 */
10461046static bool
1047- ProcessXLogDataMsg (PGconn * conn , StreamCtl * stream , char * copybuf , int len ,
1048- XLogRecPtr * blockpos )
1047+ ProcessWALDataMsg (PGconn * conn , StreamCtl * stream , char * copybuf , int len ,
1048+ XLogRecPtr * blockpos )
10491049{
10501050 int xlogoff ;
10511051 int bytes_left ;
@@ -1054,13 +1054,13 @@ ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len,
10541054
10551055 /*
10561056 * Once we've decided we don't want to receive any more, just ignore any
1057- * subsequent XLogData messages.
1057+ * subsequent WALData messages.
10581058 */
10591059 if (!(still_sending ))
10601060 return true;
10611061
10621062 /*
1063- * Read the header of the XLogData message, enclosed in the CopyData
1063+ * Read the header of the WALData message, enclosed in the CopyData
10641064 * message. We only need the WAL location field (dataStart), the rest of
10651065 * the header is ignored.
10661066 */
@@ -1162,7 +1162,7 @@ ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len,
11621162 return false;
11631163 }
11641164 still_sending = false;
1165- return true; /* ignore the rest of this XLogData packet */
1165+ return true; /* ignore the rest of this WALData packet */
11661166 }
11671167 }
11681168 }
0 commit comments