!1264 修正日志归档打印信息

Merge pull request !1264 from mujinqiang/mjq200
This commit is contained in:
opengauss-bot 2021-09-26 09:05:37 +00:00 committed by Gitee
commit e3d719e68d
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ static bool PgarchArchiveXlogToDest(const char* xlog)
while ((fileBytes = read(fdSrc, pbuff, sizeof(pbuff))) > 0) {
if (write(fdDest, pbuff, fileBytes) != fileBytes) {
close(fdSrc);
ereport(FATAL, (errmsg_internal("could not write file\"%s\":%m\n", srcPath)));
ereport(FATAL, (errmsg_internal("could not write file\"%s\":%m\n", destPath)));
}
(void)memset_s(pbuff, sizeof(pbuff), 0, sizeof(pbuff));
}