mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Wake up interested backends when a checkpoint fails.
Commit c6c9474a
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
This commit is contained in:
@ -279,6 +279,8 @@ CheckpointerMain(void)
|
||||
CheckpointerShmem->ckpt_done = CheckpointerShmem->ckpt_started;
|
||||
SpinLockRelease(&CheckpointerShmem->ckpt_lck);
|
||||
|
||||
ConditionVariableBroadcast(&CheckpointerShmem->done_cv);
|
||||
|
||||
ckpt_active = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user