diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-07-14 21:02:04 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-07-14 21:04:53 +0300 |
commit | 2686da9db2aec19763ff2dfe5c034da8fb5eb382 (patch) | |
tree | 683a432dbf56afe2eb74454f965b7e8492a4d465 /src | |
parent | 6c349a565abf1e5ddf68971c62afff14947bcfa2 (diff) | |
download | postgresql-2686da9db2aec19763ff2dfe5c034da8fb5eb382.tar.gz postgresql-2686da9db2aec19763ff2dfe5c034da8fb5eb382.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/walreceiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c index eb96f6dd331..fd119d38cbb 100644 --- a/src/backend/replication/walreceiver.c +++ b/src/backend/replication/walreceiver.c @@ -73,7 +73,7 @@ walrcv_disconnect_type walrcv_disconnect = NULL; * corresponding the filename of recvFile, used for error messages. */ static int recvFile = -1; -static TimeLineID recvFileTLI = -1; +static TimeLineID recvFileTLI = 0; static XLogSegNo recvSegNo = 0; static uint32 recvOff = 0; |