Skip to content

Commit a98e4de

Browse files
committed
Remove unused ShutdownLatchSupport() function
The only caller was removed in commit 80a8f95. I don't foresee needing it any time soon, and I'm working on some big changes in this area, so let's remove it out of the way. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/8a507fb6-df28-49d3-81a5-ede180d7f0fb@iki.fi
1 parent 153836b commit a98e4de

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/backend/storage/ipc/latch.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -360,33 +360,6 @@ InitializeLatchWaitSet(void)
360360
Assert(latch_pos == LatchWaitSetLatchPos);
361361
}
362362

363-
void
364-
ShutdownLatchSupport(void)
365-
{
366-
#if defined(WAIT_USE_POLL)
367-
pqsignal(SIGURG, SIG_IGN);
368-
#endif
369-
370-
if (LatchWaitSet)
371-
{
372-
FreeWaitEventSet(LatchWaitSet);
373-
LatchWaitSet = NULL;
374-
}
375-
376-
#if defined(WAIT_USE_SELF_PIPE)
377-
close(selfpipe_readfd);
378-
close(selfpipe_writefd);
379-
selfpipe_readfd = -1;
380-
selfpipe_writefd = -1;
381-
selfpipe_owner_pid = InvalidPid;
382-
#endif
383-
384-
#if defined(WAIT_USE_SIGNALFD)
385-
close(signal_fd);
386-
signal_fd = -1;
387-
#endif
388-
}
389-
390363
/*
391364
* Initialize a process-local latch.
392365
*/

src/include/storage/latch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ extern void OwnLatch(Latch *latch);
173173
extern void DisownLatch(Latch *latch);
174174
extern void SetLatch(Latch *latch);
175175
extern void ResetLatch(Latch *latch);
176-
extern void ShutdownLatchSupport(void);
177176

178177
extern WaitEventSet *CreateWaitEventSet(ResourceOwner resowner, int nevents);
179178
extern void FreeWaitEventSet(WaitEventSet *set);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy