Content-Length: 257935 | pFad | http://github.com/postgrespro/postgres/commit/c0348fd0e389c89003f309918705d1daea2217b0

CE Add missing call to ConditionVariableCancelSleep(). · postgrespro/postgres@c0348fd · GitHub
Skip to content

Commit c0348fd

Browse files
committed
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
1 parent 5d2e1cc commit c0348fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/postmaster/walsummarizer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,8 @@ WaitForWalSummarization(XLogRecPtr lsn, long timeout, XLogRecPtr *pending_lsn)
682682
WAIT_EVENT_WAL_SUMMARY_READY);
683683
}
684684

685+
ConditionVariableCancelSleep();
686+
685687
return summarized_lsn;
686688
}
687689

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c0348fd0e389c89003f309918705d1daea2217b0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy