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

Commit78fdb1e

Browse files
committed
Mark ParallelMessagePending as sig_atomic_t
ParallelMessagePending was previously marked as a boolean which shouldbe fine on modern platforms, but the C standard recommends the use ofsig_atomic_t for variables manipulated in signal handlers.Author: Hayato KurodaDiscussion:https://postgr.es/m/TYAPR01MB58667C15A95A234720F4F876F5529@TYAPR01MB5866.jpnprd01.prod.outlook.com
1 parente1e6f8f commit78fdb1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/access/transam/parallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef struct FixedParallelState
113113
intParallelWorkerNumber=-1;
114114

115115
/* Is there a parallel message pending which we need to receive? */
116-
volatileboolParallelMessagePending= false;
116+
volatilesig_atomic_tParallelMessagePending= false;
117117

118118
/* Are we initializing a parallel worker? */
119119
boolInitializingParallelWorker= false;

‎src/include/access/parallel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ typedef struct ParallelWorkerContext
5454
shm_toc*toc;
5555
}ParallelWorkerContext;
5656

57-
externPGDLLIMPORTvolatileboolParallelMessagePending;
57+
externPGDLLIMPORTvolatilesig_atomic_tParallelMessagePending;
5858
externPGDLLIMPORTintParallelWorkerNumber;
5959
externPGDLLIMPORTboolInitializingParallelWorker;
6060

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp