pgsql: Add missing call to ConditionVariableCancelSleep(). - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add missing call to ConditionVariableCancelSleep().
Date
Msg-id E1sVtss-000icd-Vs@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c0348fd0e389c89003f309918705d1daea2217b0

Modified Files
--------------
src/backend/postmaster/walsummarizer.c | 2 ++
1 file changed, 2 insertions(+)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Replace some strtok() with strsep()
Next
From: Robert Haas
Date:
Subject: pgsql: Add missing call to ConditionVariableCancelSleep().