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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 030e10f) | patch
Rework redundant code in subtrans.c
Tue, 5 Mar 2024 11:09:18 +0000 (12:09 +0100)
Tue, 5 Mar 2024 11:09:18 +0000 (12:09 +0100)
commit 1a2654b32b546d25e39a0c02410049559a3d4573
Rework redundant code in subtrans.c

When this code was written the duplicity didn't matter, but with all the
SLRU-bank stuff we just added, it has become excessive. Turn it into a
simpler loop with no code duplication. Also add a test so that this
code becomes covered.

Discussion: https://postgr.es/m/202403041517.3a35jw53os65@alvherre.pgsql
src/backend/access/transam/subtrans.c diff | blob | blame | history
src/test/recovery/t/009_twophase.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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