!5039 回放 & debug 模式下,当从候选队列拿到的 buffer 又被写脏时,降低日志级别

Merge pull request !5039 from yunlongwang/master
This commit is contained in:
opengauss_bot
2024-07-03 07:40:20 +00:00
committed by Gitee

View File

@ -2915,9 +2915,6 @@ void PageCheckIfCanEliminate(BufferDesc *buf, uint64 *oldFlags, bool *needGetLoc
if ((*oldFlags & BM_TAG_VALID) && !XLByteEQ(buf->extra->lsn_on_disk, PageGetLSN(tmpBlock)) &&
!(*oldFlags & BM_DIRTY) && RecoveryInProgress()) {
int mode = DEBUG1;
#ifdef USE_ASSERT_CHECKING
mode = PANIC;
#endif
const uint32 shiftSize = 32;
ereport(mode, (errmodule(MOD_INCRE_BG),
errmsg("check lsn is not matched on disk:%X/%X on page %X/%X, relnode info:%u/%u/%u %u %u",