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

Commita044e61

Browse files
committed
Remove redundant HandleWalWriterInterrupts().
Because of commit1bdd54e, the code of HandleWalWriterInterrupts()became the same as HandleMainLoopInterrupts(). So this commit removesHandleWalWriterInterrupts() and makes walwriter useHandleMainLoopInterrupts() for improved code simplicity.Author: Fujii MasaoReviewed-by: Bharath Rupireddy, Nathan BossartDiscussion:https://postgr.es/m/CAHGQGwHUtwCsB4DnqFLiMiVzjcA=zmeCKf9_pgQM-yJopydatw@mail.gmail.com
1 parent820b5af commita044e61

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

‎src/backend/postmaster/walwriter.c

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ intWalWriterFlushAfter = DEFAULT_WAL_WRITER_FLUSH_AFTER;
7878
#defineLOOPS_UNTIL_HIBERNATE50
7979
#defineHIBERNATE_FACTOR25
8080

81-
/* Prototypes for private functions */
82-
staticvoidHandleWalWriterInterrupts(void);
83-
8481
/*
8582
* Main entry point for walwriter process
8683
*
@@ -245,7 +242,7 @@ WalWriterMain(void)
245242
ResetLatch(MyLatch);
246243

247244
/* Process any signals received recently */
248-
HandleWalWriterInterrupts();
245+
HandleMainLoopInterrupts();
249246

250247
/*
251248
* Do what we're here for; then, if XLogBackgroundFlush() found useful
@@ -275,26 +272,3 @@ WalWriterMain(void)
275272
WAIT_EVENT_WAL_WRITER_MAIN);
276273
}
277274
}
278-
279-
/*
280-
* Interrupt handler for main loops of WAL writer process.
281-
*/
282-
staticvoid
283-
HandleWalWriterInterrupts(void)
284-
{
285-
if (ProcSignalBarrierPending)
286-
ProcessProcSignalBarrier();
287-
288-
if (ConfigReloadPending)
289-
{
290-
ConfigReloadPending= false;
291-
ProcessConfigFile(PGC_SIGHUP);
292-
}
293-
294-
if (ShutdownRequestPending)
295-
proc_exit(0);
296-
297-
/* Perform logging of memory contexts of this process */
298-
if (LogMemoryContextPending)
299-
ProcessLogMemoryContextInterrupt();
300-
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp