修复ustore存储引擎中,当索引回收队列页面个数大于2时,系统视图显示不全的问题
This commit is contained in:
@ -323,12 +323,14 @@ void UBTreeDumpRecycleQueueFork(Relation rel, UBTRecycleForkNumber forkNum, Tupl
|
|||||||
/* now we traverse the whole queue from the head page */
|
/* now we traverse the whole queue from the head page */
|
||||||
while (true) {
|
while (true) {
|
||||||
(void)UBTreeRecycleQueuePageDump(rel, buf, true, tupDesc, tupstore, cols);
|
(void)UBTreeRecycleQueuePageDump(rel, buf, true, tupDesc, tupstore, cols);
|
||||||
buf = StepNextRecyclePage(rel, buf);
|
/* exit if current page is tail page*/
|
||||||
page = BufferGetPage(buf);
|
|
||||||
header = GetRecycleQueueHeader(page, BufferGetBlockNumber(buf));
|
|
||||||
if ((header->flags & URQ_TAIL_PAGE) == 0) {
|
if ((header->flags & URQ_TAIL_PAGE) == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* move to the next page*/
|
||||||
|
buf = StepNextRecyclePage(rel, buf);
|
||||||
|
page = BufferGetPage(buf);
|
||||||
|
header = GetRecycleQueueHeader(page, BufferGetBlockNumber(buf));
|
||||||
}
|
}
|
||||||
UnlockReleaseBuffer(buf);
|
UnlockReleaseBuffer(buf);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user