8000 Reword some unclear comments · dirbacke/postgres@e829db0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e829db0

Browse files
committed
Reword some unclear comments
1 parent 6d81d0a commit e829db0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/access/heap/heapam.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3594,7 +3594,7 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
35943594

35953595
/*
35963596
* To prevent concurrent sessions from updating the tuple, we have to
3597-
* temporarily mark it locked, while we release the lock.
3597+
* temporarily mark it locked, while we release the page-level lock.
35983598
*
35993599
* To satisfy the rule that any xid potentially appearing in a buffer
36003600
* written out to disk, we unfortunately have to WAL log this
@@ -3606,8 +3606,9 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
36063606

36073607
/*
36083608
* Compute xmax / infomask appropriate for locking the tuple. This has
3609-
* to be done separately from the lock, because the potentially
3610-
* created multixact would otherwise be wrong.
3609+
* to be done separately from the combo that's going to be used for
3610+
* updating, because the potentially created multixact would otherwise
3611+
* be wrong.
36113612
*/
36123613
compute_new_xmax_infomask(HeapTupleHeaderGetRawXmax(oldtup.t_data),
36133614
oldtup.t_data->t_infomask,

0 commit comments

Comments
 (0)
0