mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Clean up WaitLatch calls that passed latch without WL_LATCH_SET
The 'latch' argument is ignored if WL_LATCH_SET is not given. Clarify these calls by not pointlessly passing MyLatch. Discussion: https://www.postgresql.org/message-id/391abe21-413e-4d91-a650-b663af49500c@iki.fi
This commit is contained in:
@@ -315,7 +315,7 @@ WalSummarizerMain(char *startup_data, size_t startup_data_len)
|
||||
* So a really fast retry time doesn't seem to be especially
|
||||
* beneficial, and it will clutter the logs.
|
||||
*/
|
||||
(void) WaitLatch(MyLatch,
|
||||
(void) WaitLatch(NULL,
|
||||
WL_TIMEOUT | WL_EXIT_ON_PM_DEATH,
|
||||
10000,
|
||||
WAIT_EVENT_WAL_SUMMARIZER_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user