Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita98e4de

Browse files
committed
Remove unused ShutdownLatchSupport() function
The only caller was removed in commit80a8f95. I don't foreseeneeding it any time soon, and I'm working on some big changes in thisarea, 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 parent153836b commita98e4de

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
externvoidDisownLatch(Latch*latch);
174174
externvoidSetLatch(Latch*latch);
175175
externvoidResetLatch(Latch*latch);
176-
externvoidShutdownLatchSupport(void);
177176

178177
externWaitEventSet*CreateWaitEventSet(ResourceOwnerresowner,intnevents);
179178
externvoidFreeWaitEventSet(WaitEventSet*set);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp