aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/reinit.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-10-23 10:20:30 +0900
committerMichael Paquier <michael@paquier.xyz>2023-10-23 10:20:30 +0900
commitb6f1cca9ba3d24c8fcaa9facc30c96bcc50b37aa (patch)
treec11cd2819853c5ef67e7dea94ad7438aaaaa0bf5 /src/backend/storage/file/reinit.c
parent40ebc41576e8116b7df90d0181f1371669622ea6 (diff)
downloadpostgresql-b6f1cca9ba3d24c8fcaa9facc30c96bcc50b37aa.tar.gz
postgresql-b6f1cca9ba3d24c8fcaa9facc30c96bcc50b37aa.zip
Remove unnecessary break in pg_logical_replication_slot_advance()
pg_logical_replication_slot_advance() included a break condition to stop when a targeted LSN is reached, when processing a series of WAL records with XLogReadRecord(). Since 38a957316d7e, it matched with the check of its main while loop. This condition saved from an extra CFI check, actually pointless, so let's remove this condition and simplify the code. In passing, fix an incorrect comment. Author: Bharath Rupireddy Reviewed-by: Tom Lane, Gurjeet Singh Discussion: https://postgr.es/m/CALj2ACWfGDLQ2cy7ZKwxnJqbDkO6Yvqqrqxne5ZN4HYm=PRTGg@mail.gmail.com
Diffstat (limited to 'src/backend/storage/file/reinit.c')
0 files changed, 0 insertions, 0 deletions