Wake LSN waiters before recovery target stop

Move WaitLSNWakeup() immediately after ApplyWalRecord() so waiters are
signaled even when recoveryStopsAfter() breaks out for pause/promotion
targets.

Discussion: https://postgr.es/m/9533608f-f289-44bd-b881-9e5a73203c5b%40iki.fi
Discussion: 
https://postgr.es/m/CABPTF7Wdq6KbvC3EhLX3Pz%3DODCCPEX7qVQ%2BE%3DcokkB91an2E-A%40mail.gmail.com
Reported-by: Heikki Linnakangas <[email protected]>
Author: Xuneng Zhou <[email protected]>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20a8f783e15c503125c2ed0ae890510879f62801

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

Reply via email to