Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 076d29a

Browse files
committed
Blind attempt at fixing Win32 pg_dump issues
Per buildfarm failures
1 parent 0eea804 commit 076d29a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bin/pg_dump/parallel.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ typedef struct
4747
{
4848
ArchiveHandle *AH;
4949
RestoreOptions *ropt;
50+
DumpOptions *dopt;
5051
int worker;
5152
int pipeRead;
5253
int pipeWrite;
@@ -464,12 +465,13 @@ init_spawned_worker_win32(WorkerInfo *wi)
464465
ArchiveHandle *AH;
465466
int pipefd[2] = {wi->pipeRead, wi->pipeWrite};
466467
int worker = wi->worker;
468+
DumpOptions *dopt = wi->dopt;
467469
RestoreOptions *ropt = wi->ropt;
468470

469471
AH = CloneArchive(wi->AH);
470472

471473
free(wi);
472-
SetupWorker(AH, pipefd, worker, ropt);
474+
SetupWorker(AH, pipefd, worker, dopt, ropt);
473475

474476
DeCloneArchive(AH);
475477
_endthreadex(0);
@@ -546,6 +548,7 @@ ParallelBackupStart(ArchiveHandle *AH, DumpOptions *dopt, RestoreOptions *ropt)
546548
wi = (WorkerInfo *) pg_malloc(sizeof(WorkerInfo));
547549

548550
wi->ropt = ropt;
551+
wi->dopt = dopt;
549552
wi->worker = i;
550553
wi->AH = AH;
551554
wi->pipeRead = pstate->parallelSlot[i].pipeRevRead = pipeMW[PIPE_READ];

src/bin/pg_dump/pg_backup_utils.c

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414
#include "postgres_fe.h"
1515

16+
#include "parallel.h"
1617
#include "pg_backup_utils.h"
1718

1819
/* Globals exported by this file */

0 commit comments

Comments
 (0)