postgresql/src/include/replication
Masahiko Sawada 227eb4eea2 Refactor replication origin state reset helpers.
Factor out common logic for clearing replorigin_session_* variables
into a dedicated helper function, replorigin_xact_clear().

This removes duplicated assignments of these variables across multiple
call sites, and makes the intended scope of each reset explicit.

Author: Chao Li <lic@highgo.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/CAEoWx2=pYvfRthXHTzSrOsf5_FfyY4zJyK4zV2v4W=yjUij1cA@mail.gmail.com
2026-01-28 11:45:26 -08:00
..
conflict.h Standardize replication origin naming to use "ReplOrigin". 2026-01-28 11:03:29 -08:00
decode.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logical.h Standardize replication origin naming to use "ReplOrigin". 2026-01-28 11:03:29 -08:00
logicalctl.h Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00
logicallauncher.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalproto.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalrelation.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalworker.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
message.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
origin.h Refactor replication origin state reset helpers. 2026-01-28 11:45:26 -08:00
output_plugin.h Standardize replication origin naming to use "ReplOrigin". 2026-01-28 11:03:29 -08:00
pgoutput.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
reorderbuffer.h Standardize replication origin naming to use "ReplOrigin". 2026-01-28 11:03:29 -08:00
slot.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
slotsync.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
snapbuild.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
snapbuild_internal.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
syncrep.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
walreceiver.h Add WALRCV_CONNECTING state to the WAL receiver 2026-01-23 14:17:28 +09:00
walsender.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
walsender_private.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
worker_internal.h Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00