summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2024-07-17 18:53:00 +0000
committerRobert Haas2024-07-22 14:02:31 +0000
commitc0348fd0e389c89003f309918705d1daea2217b0 (patch)
tree09e01132885286f911fbf0b2f1b9d8e8939be62d
parent5d2e1cc117b38db6bb5dc2e9ae9115304571ac70 (diff)
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
-rw-r--r--src/backend/postmaster/walsummarizer.c2
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;
}