Skip to content

Commit 8a815e3

Browse files
committed
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)
1 parent 2f5c9d9 commit 8a815e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/nbtree/nbtsearch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,10 +1345,10 @@ _bt_steppage(IndexScanDesc scan, ScanDirection dir)
13451345
CHECK_FOR_INTERRUPTS();
13461346
/* step right one page */
13471347
so->currPos.buf = _bt_getbuf(rel, blkno, BT_READ);
1348-
/* check for deleted page */
13491348
page = BufferGetPage(so->currPos.buf);
13501349
TestForOldSnapshot(scan->xs_snapshot, rel, page);
13511350
opaque = (BTPageOpaque) PageGetSpecialPointer(page);
1351+
/* check for deleted page */
13521352
if (!P_IGNORE(opaque))
13531353
{
13541354
PredicateLockPage(rel, blkno, scan->xs_snapshot);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy