pg master he3pg core problem

Code Source From: Self Code
Description:  【Optional】
Jira:  #【Optional】
市场项目编号(名称):【Optional】
This commit is contained in:
shenzhengntu 2023-05-18 11:31:06 +08:00
parent 2b11b80427
commit 2629dbc5de

View File

@ -8491,6 +8491,11 @@ heap_xlog_prune(XLogReaderState *record)
}
if (mode != RBM_NORMAL_VALID && BufferIsValid(buffer))
{
UnlockReleaseBuffer(buffer);
}
/*if (mode != RBM_NORMAL_VALID && BufferIsValid(buffer))
{
Size freespace = PageGetHeapFreeSpace(BufferGetPage(buffer));
@ -8505,8 +8510,8 @@ heap_xlog_prune(XLogReaderState *record)
* Do this regardless of a full-page image being applied, since the
* FSM data is not in the page anyway.
*/
XLogRecordPageWithFreeSpace(rnode, blkno, freespace);
}
/*XLogRecordPageWithFreeSpace(rnode, blkno, freespace);
}*/
}
/*
@ -8560,6 +8565,11 @@ heap_xlog_vacuum(XLogReaderState *record)
}
if (BufferIsValid(buffer))
{
UnlockReleaseBuffer(buffer);
}
/*if (BufferIsValid(buffer))
{
Size freespace = PageGetHeapFreeSpace(BufferGetPage(buffer));
RelFileNode rnode;
@ -8577,8 +8587,8 @@ heap_xlog_vacuum(XLogReaderState *record)
* Do this regardless of a full-page image being applied, since the
* FSM data is not in the page anyway.
*/
XLogRecordPageWithFreeSpace(rnode, blkno, freespace);
}
/*XLogRecordPageWithFreeSpace(rnode, blkno, freespace);
}*/
}
/*
@ -8642,6 +8652,8 @@ heap_xlog_visible(XLogReaderState *record)
PageSetAllVisible(page);
MarkBufferDirty(buffer);
PageSetLSN(page, lsn);
}
else if (action == BLK_RESTORED)
{
@ -8653,6 +8665,11 @@ heap_xlog_visible(XLogReaderState *record)
}
if (BufferIsValid(buffer))
{
UnlockReleaseBuffer(buffer);
}
/*if (BufferIsValid(buffer))
{
Size space = PageGetFreeSpace(BufferGetPage(buffer));
@ -8675,9 +8692,9 @@ heap_xlog_visible(XLogReaderState *record)
* Do this regardless of a full-page image being applied, since the
* FSM data is not in the page anyway.
*/
if (xlrec->flags & VISIBILITYMAP_VALID_BITS)
/*if (xlrec->flags & VISIBILITYMAP_VALID_BITS)
XLogRecordPageWithFreeSpace(rnode, blkno, space);
}
}*/
/*
* Even if we skipped the heap page update due to the LSN interlock, it's
@ -8842,6 +8859,11 @@ he3_heap_xlog_visible(XLogReaderState *record)
}
if (BufferIsValid(buffer))
{
UnlockReleaseBuffer(buffer);
}
/*if (BufferIsValid(buffer))
{
Size space = PageGetFreeSpace(BufferGetPage(buffer));
@ -8864,18 +8886,11 @@ he3_heap_xlog_visible(XLogReaderState *record)
* Do this regardless of a full-page image being applied, since the
* FSM data is not in the page anyway.
*/
if (xlrec->flags & VISIBILITYMAP_VALID_BITS)
/*if (xlrec->flags & VISIBILITYMAP_VALID_BITS)
XLogRecordPageWithFreeSpace(rnode, blkno, space);
}
}*/
break;
}
}
}