!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:
opengauss-bot
2020-11-19 09:57:20 +08:00
committed by Gitee
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,