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

Commit982cf6a

Browse files
committed
Fix error in forming remote path for Windows
1 parent66d33a1 commit982cf6a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎src/pg_probackup.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ main(int argc, char *argv[])
298298
elseif (strcmp(argv[1], "agent")==0&&argc>2)
299299
{
300300
remote_agent=argv[2];
301+
sleep(10);
301302
if (strcmp(remote_agent,PROGRAM_VERSION)!=0)
302303
{
303304
uint32agent_version=parse_program_version(remote_agent);

‎src/utils/remote.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,12 @@ bool launch_agent(void)
137137
probackup=sep+1;
138138
}
139139
}
140-
#endif
140+
snprintf(cmd,sizeof(cmd),"%s\\%s agent %s",
141+
instance_config.remote.path,probackup,PROGRAM_VERSION);
142+
#else
141143
snprintf(cmd,sizeof(cmd),"%s/%s agent %s",
142144
instance_config.remote.path,probackup,PROGRAM_VERSION);
145+
#endif
143146
}else {
144147
snprintf(cmd,sizeof(cmd),"%s agent %s",pg_probackup,PROGRAM_VERSION);
145148
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp