diff options
author | Robert Haas <rhaas@postgresql.org> | 2024-07-17 14:53:00 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2024-07-22 10:02:31 -0400 |
commit | c0348fd0e389c89003f309918705d1daea2217b0 (patch) | |
tree | 09e01132885286f911fbf0b2f1b9d8e8939be62d /src | |
parent | 5d2e1cc117b38db6bb5dc2e9ae9115304571ac70 (diff) | |
download | postgresql-c0348fd0e389c89003f309918705d1daea2217b0.tar.gz postgresql-c0348fd0e389c89003f309918705d1daea2217b0.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/walsummarizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/postmaster/walsummarizer.c b/src/backend/postmaster/walsummarizer.c index 83c178e7662..191b360bef4 100644 --- a/src/backend/postmaster/walsummarizer.c +++ b/src/backend/postmaster/walsummarizer.c @@ -682,6 +682,8 @@ WaitForWalSummarization(XLogRecPtr lsn, long timeout, XLogRecPtr *pending_lsn) WAIT_EVENT_WAL_SUMMARY_READY); } + ConditionVariableCancelSleep(); + return summarized_lsn; } |