aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2014-10-14 17:33:36 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2014-10-14 17:33:36 -0300
commit076d29a1eed5fe51fb2b25b98fcde9dd7c506902 (patch)
treee3a3b83bbe9a5e791d1cb515337071b4608087f8 /src
parent0eea8047bf0e15b402b951e383e39236bdfe57d5 (diff)
downloadpostgresql-076d29a1eed5fe51fb2b25b98fcde9dd7c506902.tar.gz
postgresql-076d29a1eed5fe51fb2b25b98fcde9dd7c506902.zip
Blind attempt at fixing Win32 pg_dump issues
Per buildfarm failures
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/parallel.c5
-rw-r--r--src/bin/pg_dump/pg_backup_utils.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/pg_dump/parallel.c b/src/bin/pg_dump/parallel.c
index 3b8d5848b3a..54abecbc091 100644
--- a/src/bin/pg_dump/parallel.c
+++ b/src/bin/pg_dump/parallel.c
@@ -47,6 +47,7 @@ typedef struct
{
ArchiveHandle *AH;
RestoreOptions *ropt;
+ DumpOptions *dopt;
int worker;
int pipeRead;
int pipeWrite;
@@ -464,12 +465,13 @@ init_spawned_worker_win32(WorkerInfo *wi)
ArchiveHandle *AH;
int pipefd[2] = {wi->pipeRead, wi->pipeWrite};
int worker = wi->worker;
+ DumpOptions *dopt = wi->dopt;
RestoreOptions *ropt = wi->ropt;
AH = CloneArchive(wi->AH);
free(wi);
- SetupWorker(AH, pipefd, worker, ropt);
+ SetupWorker(AH, pipefd, worker, dopt, ropt);
DeCloneArchive(AH);
_endthreadex(0);
@@ -546,6 +548,7 @@ ParallelBackupStart(ArchiveHandle *AH, DumpOptions *dopt, RestoreOptions *ropt)
wi = (WorkerInfo *) pg_malloc(sizeof(WorkerInfo));
wi->ropt = ropt;
+ wi->dopt = dopt;
wi->worker = i;
wi->AH = AH;
wi->pipeRead = pstate->parallelSlot[i].pipeRevRead = pipeMW[PIPE_READ];
diff --git a/src/bin/pg_dump/pg_backup_utils.c b/src/bin/pg_dump/pg_backup_utils.c
index 0d7c6dbbf07..47cb142fa57 100644
--- a/src/bin/pg_dump/pg_backup_utils.c
+++ b/src/bin/pg_dump/pg_backup_utils.c
@@ -13,6 +13,7 @@
*/
#include "postgres_fe.h"
+#include "parallel.h"
#include "pg_backup_utils.h"
/* Globals exported by this file */