!416 fix the problem of archive_dest should not be synchronized to the standby
Merge pull request !416 from mujinqiang/master
This commit is contained in:
@ -460,7 +460,7 @@ static bool PgarchArchiveXlogToDest(const char* xlog)
|
||||
char srcPath[MAXPGPATH] = {0};
|
||||
char destPath[MAXPGPATH] = {0};
|
||||
char activitymsg[MAXFNAMELEN + 16];
|
||||
unsigned long int fileBytes = 0;
|
||||
long int fileBytes = 0;
|
||||
int rc = 0;
|
||||
|
||||
if (xlog == NULL) {
|
||||
@ -504,7 +504,7 @@ static bool PgarchArchiveXlogToDest(const char* xlog)
|
||||
ereport(FATAL, (errmsg_internal("could not open dest file \"%s\":%m\n", destPath)));
|
||||
}
|
||||
} else {
|
||||
ereport(FATAL, (errmsg_internal("could not open src file \"%s\":%m\n", srcPath, strerror(errno))));
|
||||
ereport(FATAL, (errmsg_internal("could not open src file \"%s\":%m\n", srcPath)));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -113,7 +113,7 @@ const char* g_reserve_param[RESERVE_SIZE] = {"application_name",
|
||||
"ssl_renegotiation_limit",
|
||||
"synchronous_standby_names",
|
||||
"local_bind_address",
|
||||
NULL,
|
||||
"archive_dest",
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
|
Reference in New Issue
Block a user