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

Commit8d2c191

Browse files
committed
Remove unneeded volatile qualifiers from postmaster.c.
Several flags were marked volatile and in some cases used sig_atomic_tbecause they were accessed from signal handlers. After commit7389aad,we can just use unqualified bool.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CA%2BhUKGLMoeZNZY6gYdLUQmuoW_a8bKyLvtuZkd_zHcGVOfDzBA%40mail.gmail.com
1 parente4e89eb commit8d2c191

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,17 +359,17 @@ boolClientAuthInProgress = false;/* T during new-client
359359
boolredirection_done= false;/* stderr redirected for syslogger? */
360360

361361
/* received START_AUTOVAC_LAUNCHER signal */
362-
staticvolatilesig_atomic_tstart_autovac_launcher= false;
362+
staticboolstart_autovac_launcher= false;
363363

364364
/* the launcher needs to be signaled to communicate some condition */
365-
staticvolatileboolavlauncher_needs_signal= false;
365+
staticboolavlauncher_needs_signal= false;
366366

367367
/* received START_WALRECEIVER signal */
368-
staticvolatilesig_atomic_tWalReceiverRequested= false;
368+
staticboolWalReceiverRequested= false;
369369

370370
/* set when there's a worker that needs to be started up */
371-
staticvolatileboolStartWorkerNeeded= true;
372-
staticvolatileboolHaveCrashedWorker= false;
371+
staticboolStartWorkerNeeded= true;
372+
staticboolHaveCrashedWorker= false;
373373

374374
/* set when signals arrive */
375375
staticvolatilesig_atomic_tpending_pm_pmsignal;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp