Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."
authorNoah Misch <noah@leadboat.com>
Sat, 25 Apr 2020 17:17:26 +0000 (10:17 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 25 Apr 2020 17:17:26 +0000 (10:17 -0700)
commit72a3dc321d76c93842d502793f93b9dc2d2305b2
tree6746db005f6b8d687164347dc38246966532d2f0
parentd9a4cce29d563e4e6f6eec8b807736d98b1ad553
Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."

This reverts commit 421685812290406daea58b78dfab0346eb683bbb.  It caused
idle physical walsenders to busy-wait, as reported by Fujii Masao.

Discussion: https://postgr.es/m/20200417054146.GA1061007@rfd.leadboat.com
src/backend/replication/walsender.c