git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 710e6c4) | patch
Mark ItemPointer arguments as const in tuple/table lock functions
2025年8月29日 05:33:50 +0000 (07:33 +0200)
2025年8月29日 05:39:58 +0000 (07:39 +0200)
commit 991295f387a6a453fe061831bcc36294989fe77b
Mark ItemPointer arguments as const in tuple/table lock functions

The functions LockTuple, ConditionalLockTuple, UnlockTuple, and
XactLockTableWait take an ItemPointer argument that they do not
modify, so the argument can be const-qualified to better convey intent
and allow the compiler to enforce immutability.

Author: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEoWx2m9e4rECHBwpRE4%2BGCH%2BpbYZXLh2f4rB1Du5hDfKug%2BOg%40mail.gmail.com
src/backend/storage/lmgr/lmgr.c diff | blob | blame | history
src/include/storage/lmgr.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /