]> granicus.if.org Git - postgresql/commit
Don't initialize TLI variable to -1, as TimeLineID is unsigned.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 14 Jul 2012 18:02:04 +0000 (21:02 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 14 Jul 2012 18:04:53 +0000 (21:04 +0300)
commit2686da9db2aec19763ff2dfe5c034da8fb5eb382
tree683a432dbf56afe2eb74454f965b7e8492a4d465
parent6c349a565abf1e5ddf68971c62afff14947bcfa2
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.
src/backend/replication/walreceiver.c