pgsql: Rework redundant code in subtrans.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Rework redundant code in subtrans.c
Дата
Msg-id [email protected]
обсуждение исходный текст
Список pgsql-committers
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/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1a2654b32b546d25e39a0c02410049559a3d4573

Modified Files
--------------
src/backend/access/transam/subtrans.c | 29 ++++++------------------
src/test/recovery/t/009_twophase.pl   | 42 +++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 22 deletions(-)


В списке pgsql-committers по дате отправления: