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

Commit4c052b9

Browse files
authored
Merge pull request#424 from postgrespro/pgpro-5454
[PGPRO-5454] copying basedir to exclude the situation of overwriting …
2 parents14035b2 +52840d7 commit4c052b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/stream.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static time_t stream_stop_begin = 0;
4242
*/
4343
typedefstruct
4444
{
45-
constchar*basedir;
45+
charbasedir[MAXPGPATH];
4646
PGconn*conn;
4747

4848
/*
@@ -638,7 +638,7 @@ start_WAL_streaming(PGconn *backup_conn, char *stream_dst_path, ConnectionOption
638638
//TODO Add a comment about this calculation
639639
stream_stop_timeout=stream_stop_timeout+stream_stop_timeout*0.1;
640640

641-
stream_thread_arg.basedir=stream_dst_path;
641+
strncpy(stream_thread_arg.basedir,stream_dst_path,sizeof(stream_thread_arg.basedir));
642642

643643
/*
644644
* Connect in replication mode to the server.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp