Skip to content

Commit de2b384

Browse files
committed
Wake up interested backends when a checkpoint fails.
Commit c6c9474 switched to condition variables instead of sleep loops to notify backends of checkpoint start and stop, but forgot to broadcast in case of checkpoint failure. Author: Thomas Munro Discussion: https://postgr.es/m/CA%2BhUKGJKbCd%2B_K%2BSEBsbHxVT60SG0ivWHHAdvL0bLTUt2xpA2w%40mail.gmail.com
1 parent 6665305 commit de2b384

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/postmaster/checkpointer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ CheckpointerMain(void)
279279
CheckpointerShmem->ckpt_done = CheckpointerShmem->ckpt_started;
280280
SpinLockRelease(&CheckpointerShmem->ckpt_lck);
281281

282+
ConditionVariableBroadcast(&CheckpointerShmem->done_cv);
283+
282284
ckpt_active = false;
283285
}
284286

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy