Skip to content
Snippets Groups Projects
Commit 8a815e3f authored by Robert Haas's avatar Robert Haas
Browse files

Move comment about test slightly closer to test.

The addition of a TestForOldSnapshot() call here has made the
referent of this comment slightly less clear, so move the comment
to compensate.

Amit Kapila (as part of the parallel index scan patch)
parent 2f5c9d9c
No related branches found
No related tags found
No related merge requests found
...@@ -1345,10 +1345,10 @@ _bt_steppage(IndexScanDesc scan, ScanDirection dir) ...@@ -1345,10 +1345,10 @@ _bt_steppage(IndexScanDesc scan, ScanDirection dir)
CHECK_FOR_INTERRUPTS(); CHECK_FOR_INTERRUPTS();
/* step right one page */ /* step right one page */
so->currPos.buf = _bt_getbuf(rel, blkno, BT_READ); so->currPos.buf = _bt_getbuf(rel, blkno, BT_READ);
/* check for deleted page */
page = BufferGetPage(so->currPos.buf); page = BufferGetPage(so->currPos.buf);
TestForOldSnapshot(scan->xs_snapshot, rel, page); TestForOldSnapshot(scan->xs_snapshot, rel, page);
opaque = (BTPageOpaque) PageGetSpecialPointer(page); opaque = (BTPageOpaque) PageGetSpecialPointer(page);
/* check for deleted page */
if (!P_IGNORE(opaque)) if (!P_IGNORE(opaque))
{ {
PredicateLockPage(rel, blkno, scan->xs_snapshot); PredicateLockPage(rel, blkno, scan->xs_snapshot);
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment