diff options
author | Fujii Masao <fujii@postgresql.org> | 2025-09-25 00:51:59 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2025-09-25 00:51:59 +0900 |
commit | 7fcb32ad023a434e07b7214c1c762ecd410b6969 (patch) | |
tree | b24cf8f7d87c5171a7874b897822e96e3d48f176 /src/backend/access/heap/heapam.c | |
parent | a5b35fcedb542587e7d8b8fcd21a2e0995b82d2f (diff) |
Fix incorrect and inconsistent comments in tableam.h and heapam.c.
This commit corrects several issues in function comments:
* The parameter "rel" was incorrectly referred to as "relation" in the comments
for table_tuple_delete(), table_tuple_update(), and table_tuple_lock().
* In table_tuple_delete(), "changingPart" was listed as an output parameter
in the comments but is actually input.
* In table_tuple_update(), "slot" was listed as an input parameter
in the comments but is actually output.
* The comment for "update_indexes" in table_tuple_update() was mis-indented.
* The comments for heap_lock_tuple() incorrectly referenced a non-existent
"tid" parameter.
Author: Chao Li <lic@highgo.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAEoWx2nB6Ay8g=KEn7L3qbYX_4+sLk9XOMkV0XZqHR4cTY8ZvQ@mail.gmail.com
Diffstat (limited to 'src/backend/access/heap/heapam.c')
-rw-r--r-- | src/backend/access/heap/heapam.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 4c5ae205a7a..ed0c0c2dc9f 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -4552,7 +4552,6 @@ get_mxact_status_for_lock(LockTupleMode mode, bool is_update) * * Input parameters: * relation: relation containing tuple (caller must hold suitable lock) - * tid: TID of tuple to lock * cid: current command ID (used for visibility test, and stored into * tuple's cmax if lock is successful) * mode: indicates if shared or exclusive tuple lock is desired |