Thread: pgsql: Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."

pgsql: Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."

From
Noah Misch
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/72a3dc321d76c93842d502793f93b9dc2d2305b2

Modified Files
--------------
src/backend/replication/walsender.c | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)