In the implementation, it seems that it only checks the tuples in the first_page_id_. If it can not find any valid one, it would return EOF.
What if the TableHeap has multiple pages, all the tuples in the first page are deleted over a period of time but valid tuples do exist in the second page?
In the implementation, it seems that it only checks the tuples in the first_page_id_. If it can not find any valid one, it would return EOF.
What if the TableHeap has multiple pages, all the tuples in the first page are deleted over a period of time but valid tuples do exist in the second page?