Skip to content

Commit 2686da9

Browse files
committed
Don't initialize TLI variable to -1, as TimeLineID is unsigned.
This was causing a compiler warning with Solaris compiler. Use 0 instead. The variable is initialized just for the sake of tidyness and/or debugging, it's not used for anything before setting it to a real value. Per report and suggestion from Peter Eisentraut.
1 parent 6c349a5 commit 2686da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/walreceiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ walrcv_disconnect_type walrcv_disconnect = NULL;
7373
* corresponding the filename of recvFile, used for error messages.
7474
*/
7575
static int recvFile = -1;
76-
static TimeLineID recvFileTLI = -1;
76+
static TimeLineID recvFileTLI = 0;
7777
static XLogSegNo recvSegNo = 0;
7878
static uint32 recvOff = 0;
7979

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