Mark a few parallelism-related variables with PGDLLIMPORT.
authorTom Lane <[email protected]>
Tue, 4 Jun 2019 01:25:43 +0000 (21:25 -0400)
committerTom Lane <[email protected]>
Tue, 4 Jun 2019 01:25:43 +0000 (21:25 -0400)
Back-patch commit 09a65f5a2 into the 9.6 and 10 branches.
Needed to support back-patch of commit 2cd4e8357 on Windows.

Discussion: http://postgr.es/m/20190604011354[email protected]

src/include/access/parallel.h

index dffe891ce61afa3a8883cb049cfcc1a9f492a682..f8e467f29163b43a2d2a416c10f10ecc4fb4e0bd 100644 (file)
@@ -47,8 +47,8 @@ typedef struct ParallelContext
 } ParallelContext;
 
 extern volatile bool ParallelMessagePending;
-extern int ParallelWorkerNumber;
-extern bool InitializingParallelWorker;
+extern PGDLLIMPORT int ParallelWorkerNumber;
+extern PGDLLIMPORT bool InitializingParallelWorker;
 
 #define        IsParallelWorker()      (ParallelWorkerNumber >= 0)