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

This commit is contained in:
yunlongwang
2024-03-27 08:24:58 +00:00
parent fc9e6f7626
commit 08de51bb44

View File

@ -2937,9 +2937,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",