forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5ccceb2
committed
Fix race condition in startup progress reporting.
Commit9ce346e added startupprogress reporting, but begin_startup_progress_phase has a racecondition: the timeout for the previous phase might fire justbefore we reschedule the interrupt for the next phase.To avoid the race, disable the timeout, clear the flag, and thenre-enable the timeout.Patch by me, reviewed by Nitin Jadhav.Discussion:https://postgr.es/m/CA+TgmoYq38i6iAzfRLVxA6Cm+wMCf4WM8wC3o_a+X_JvWC8bJg@mail.gmail.com1 parent2f5c439 commit5ccceb2
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
| 323 | + | |
| 324 | + | |
323 | 325 |
| |
324 | 326 |
| |
325 | 327 |
| |
|
0 commit comments
Comments
(0)