!3517 修改文件被删除时处理逻辑,由原先DEBUG日志修改为:ERROR日志。且增加判断:文件被删除时直接返回
Merge pull request !3517 from 吴岳川/master
This commit is contained in:
@ -172,8 +172,15 @@ void CfsWriteBack(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum, B
|
||||
pca_page_ctrl_t *ctrl = pca_buf_read_page(location, LW_SHARED, PCA_BUF_NORMAL_READ);
|
||||
if (ctrl->load_status == CTRL_PAGE_LOADED_ERROR) {
|
||||
pca_buf_free_page(ctrl, location, false);
|
||||
ereport(DEBUG1, (errcode(ERRCODE_DATA_CORRUPTED),
|
||||
errmsg("Failed to CfsWriteBack %s, headerNum: %u.", FilePathName(location.fd), location.headerNum)));
|
||||
if (check_unlink_rel_hashtbl(reln->smgr_rnode.node, forknum)) {
|
||||
ereport(DEBUG1, (errcode(ERRCODE_DATA_CORRUPTED), errmsg(
|
||||
"could not write back %u in file \"%s\" headerNum: %u, relation has been removed", blocknum,
|
||||
FilePathName(location.fd), location.headerNum)));
|
||||
return;
|
||||
}
|
||||
ereport(ERROR, (errcode(ERRCODE_DATA_CORRUPTED), errmsg("Failed to CfsWriteBack %s, headerNum: %u.",
|
||||
FilePathName(location.fd),
|
||||
location.headerNum)));
|
||||
}
|
||||
CfsExtentHeader *cfsExtentHeader = ctrl->pca_page;
|
||||
|
||||
|
Reference in New Issue
Block a user