Add missing call to ConditionVariableCancelSleep().
authorRobert Haas <rhaas@postgresql.org>
Wed, 17 Jul 2024 18:53:00 +0000 (14:53 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 22 Jul 2024 14:10:52 +0000 (10:10 -0400)
commit6c8d2ea7a5fb7f85e5f64994affa33e79c19ddd3
treeb510f83617c0ae65dde4dd2a51e11c2ef8bd814e
parentd329a515f490202635443a0a79e974a5019f65a4
Add missing call to ConditionVariableCancelSleep().

After calling ConditionVariableSleep() or ConditionVariableTimedSleep()
one or more times, code is supposed to call ConditionVariableCancelSleep()
to remove itself from the waitlist. This code neglected to do so.
As far as I know, that had no observable consequences, but let's make
the code correct.

Discussion: http://postgr.es/m/CA+TgmoYW8eR+KN6zhVH0sin7QH6AvENqw_bkN-bB4yLYKAnsew@mail.gmail.com
src/backend/postmaster/walsummarizer.c