Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/stream.c
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ static time_t stream_stop_begin = 0;
*/
typedef struct
{
const char *basedir;
char basedir[MAXPGPATH];
PGconn *conn;

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

stream_thread_arg.basedir = stream_dst_path;
strncpy(stream_thread_arg.basedir, stream_dst_path, sizeof(stream_thread_arg.basedir));

/*
* Connect in replication mode to the server.