Skip to content

Commit 1924ef4

Browse files
committed
Reword some unclear comments
1 parent eca2f8a commit 1924ef4

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
@@ -3930,7 +3930,7 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
39303930

39313931
/*
39323932
* To prevent concurrent sessions from updating the tuple, we have to
3933-
* temporarily mark it locked, while we release the lock.
3933+
* temporarily mark it locked, while we release the page-level lock.
39343934
*
39353935
* To satisfy the rule that any xid potentially appearing in a buffer
39363936
* written out to disk, we unfortunately have to WAL log this
@@ -3942,8 +3942,9 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
39423942

39433943
/*
39443944
* Compute xmax / infomask appropriate for locking the tuple. This has
3945-
* to be done separately from the lock, because the potentially
3946-
* created multixact would otherwise be wrong.
3945+
* to be done separately from the combo that's going to be used for
3946+
* updating, because the potentially created multixact would otherwise
3947+
* be wrong.
39473948
*/
39483949
compute_new_xmax_infomask(HeapTupleHeaderGetRawXmax(oldtup.t_data),
39493950
oldtup.t_data->t_infomask,

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