Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3045324

Browse files
Update obsolete index scan TID comments.
Oversight in commit c2fe139.
1 parent bbbf71d commit 3045324

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/backend/access/hash/hashsearch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static void _hash_readnext(IndexScanDesc scan, Buffer *bufp,
3737
* be pinned but not locked, and so->currPos.itemIndex identifies
3838
* which item was previously returned.
3939
*
40-
* On successful exit, scan->xs_ctup.t_self is set to the TID
41-
* of the next heap tuple. so->currPos is updated as needed.
40+
* On successful exit, scan->xs_heaptid is set to the TID of the next
41+
* heap tuple. so->currPos is updated as needed.
4242
*
4343
* On failure exit (no more tuples), we return false with pin
4444
* held on bucket page but no pins or locks held on overflow
@@ -279,7 +279,7 @@ _hash_readprev(IndexScanDesc scan,
279279
* overflow page, both pin and lock are released whereas if it is a bucket
280280
* page then it is pinned but not locked and data about the matching
281281
* tuple(s) on the page has been loaded into so->currPos,
282-
* scan->xs_ctup.t_self is set to the heap TID of the current tuple.
282+
* scan->xs_heaptid is set to the heap TID of the current tuple.
283283
*
284284
* On failure exit (no more tuples), we return false, with pin held on
285285
* bucket page but no pins or locks held on overflow page.

src/backend/access/nbtree/nbtsearch.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ _bt_compare(Relation rel,
861861
* qualifications in the scan key. On success exit, the page containing
862862
* the current index tuple is pinned but not locked, and data about
863863
* the matching tuple(s) on the page has been loaded into so->currPos.
864-
* scan->xs_ctup.t_self is set to the heap TID of the current tuple,
865-
* and if requested, scan->xs_itup points to a copy of the index tuple.
864+
* scan->xs_heaptid is set to the heap TID of the current tuple, and if
865+
* requested, scan->xs_itup points to a copy of the index tuple.
866866
*
867867
* If there are no matching items in the index, we return false, with no
868868
* pins or locks held.
@@ -1448,9 +1448,9 @@ _bt_first(IndexScanDesc scan, ScanDirection dir)
14481448
* but is not locked, and so->currPos.itemIndex identifies which item was
14491449
* previously returned.
14501450
*
1451-
* On successful exit, scan->xs_ctup.t_self is set to the TID of the
1452-
* next heap tuple, and if requested, scan->xs_itup points to a copy of
1453-
* the index tuple. so->currPos is updated as needed.
1451+
* On successful exit, scan->xs_heaptid is set to the TID of the next
1452+
* heap tuple, and if requested, scan->xs_itup points to a copy of the
1453+
* index tuple. so->currPos is updated as needed.
14541454
*
14551455
* On failure exit (no more tuples), we release pin and set
14561456
* so->currPos.buf to InvalidBuffer.

0 commit comments

Comments
 (0)