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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f9baaf9) | patch
Rework locking code in GetMultiXactIdMembers
Mon, 4 Mar 2024 16:48:01 +0000 (17:48 +0100)
Mon, 4 Mar 2024 16:48:01 +0000 (17:48 +0100)
commit a0b808baef39e9f9465b7f63f2d735f35852aa21
Rework locking code in GetMultiXactIdMembers

After commit 53c2a97a9266, the code flow around the "retry" goto label
in GetMultiXactIdMembers was confused about what was possible: we never
return there with a held lock, so there's no point in testing for one.
This realization lets us simplify the code a bit. While at it, make the
scope of a couple of local variables in the same function a bit tighter.

Per Coverity.
src/backend/access/transam/multixact.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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