Add condition variable for recovery resume.
Thomas Munro <tmunro@postgresql.org>
Add condition variable for recovery resume. Replace a sleep loop with a CV, to get a fast reaction time when recovery is resumed or the postmaster exits via standard infrastructure. Unfortunately we still need to wake up every second to perform extra polling during the recovery pause loop. Discussion: https://postgr.es/m/CA%2BhUKGK1607VmtrDUHQXrsooU%3Dap4g4R2yaoByWOOA3m8xevUQ%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +21 −10 |
Discussion
- PostmasterIsAlive() in recovery (non-USE_POST_MASTER_DEATH_SIGNAL builds) 26 messages · 2020-09-17 → 2021-07-12