修复ustore存储引擎中,当索引回收队列页面个数大于2时,系统视图显示不全的问题

This commit is contained in:
zhaosen
2024-05-06 10:05:48 +08:00
committed by yaoxin
parent 7088d0ca80
commit d48d31d5da

View File

@ -323,12 +323,14 @@ void UBTreeDumpRecycleQueueFork(Relation rel, UBTRecycleForkNumber forkNum, Tupl
/* now we traverse the whole queue from the head page */
while (true) {
(void)UBTreeRecycleQueuePageDump(rel, buf, true, tupDesc, tupstore, cols);
buf = StepNextRecyclePage(rel, buf);
page = BufferGetPage(buf);
header = GetRecycleQueueHeader(page, BufferGetBlockNumber(buf));
/* exit if current page is tail page*/
if ((header->flags & URQ_TAIL_PAGE) == 0) {
break;
}
/* move to the next page*/
buf = StepNextRecyclePage(rel, buf);
page = BufferGetPage(buf);
header = GetRecycleQueueHeader(page, BufferGetBlockNumber(buf));
}
UnlockReleaseBuffer(buf);
}