forked from huawei/openGauss-server
update src/gausskernel/process/postmaster/pgarch.cpp.
修正日志归档打印日志信息
This commit is contained in:
parent
7825074686
commit
960b1f040c
|
|
@ -624,7 +624,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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue