Skip to content

Commit 77d2c00

Browse files
committed
Reword some unclear comments
1 parent f5d54ef commit 77d2c00

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

39843984
/*
39853985
* To prevent concurrent sessions from updating the tuple, we have to
3986-
* temporarily mark it locked, while we release the lock.
3986+
* temporarily mark it locked, while we release the page-level lock.
39873987
*
39883988
* To satisfy the rule that any xid potentially appearing in a buffer
39893989
* written out to disk, we unfortunately have to WAL log this
@@ -3995,8 +3995,9 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
39953995

39963996
/*
39973997
* Compute xmax / infomask appropriate for locking the tuple. This has
3998-
* to be done separately from the lock, because the potentially
3999-
* created multixact would otherwise be wrong.
3998+
* to be done separately from the combo that's going to be used for
3999+
* updating, because the potentially created multixact would otherwise
4000+
* be wrong.
40004001
*/
40014002
compute_new_xmax_infomask(HeapTupleHeaderGetRawXmax(oldtup.t_data),
40024003
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