Fix for bug-545: Quorum lost and not recovered
authorMuhammad Usama <m.usama@gmail.com>
Sat, 28 Sep 2019 19:51:07 +0000 (00:51 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Sat, 28 Sep 2019 19:52:40 +0000 (00:52 +0500)
commit963ac83ce19dbb3d1a423ae5ce582c6866b47106
tree7088c84b0eab699862c591576aaef40153827b4d
parent17afe87bd58bc3faf1c2a7af6d195283e2156cda
Fix for bug-545: Quorum lost and not recovered

Master watchdog node was not adding the lost standby node to its list of valid
standby nodes after it is rediscovered by the lifecheck.The fix is to ask the
node to rejoin the master node when it gets rediscovered by the lifecheck. 
As part of this commit, I have also added the watchdog data version and Pgpool-II
version in the watchdog info packet to make the extensions in the watchdog
messages easier in the future.

Thanks to Guille(reporter of this bug), for providing lots of help in testing the fix
src/include/watchdog/watchdog.h
src/main/pgpool_main.c
src/watchdog/watchdog.c
src/watchdog/wd_json_data.c