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

Commit076d29a

Browse files
committed
Blind attempt at fixing Win32 pg_dump issues
Per buildfarm failures
1 parent0eea804 commit076d29a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎src/bin/pg_dump/parallel.c

Lines changed: 4 additions & 1 deletion
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
intworker;
5152
intpipeRead;
5253
intpipeWrite;
@@ -464,12 +465,13 @@ init_spawned_worker_win32(WorkerInfo *wi)
464465
ArchiveHandle*AH;
465466
intpipefd[2]= {wi->pipeRead,wi->pipeWrite};
466467
intworker=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

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp