- Notifications
You must be signed in to change notification settings - Fork5k
Commit8ac5a2f
Remove unnecessary break in pg_logical_replication_slot_advance()
pg_logical_replication_slot_advance() included a break condition to stopwhen a targeted LSN is reached, when processing a series of WAL recordswith XLogReadRecord(). Since38a9573, it matched with the check ofits main while loop. This condition saved from an extra CFI check,actually pointless, so let's remove this condition and simplify thecode.In passing, fix an incorrect comment.Author: Bharath RupireddyReviewed-by: Tom Lane, Gurjeet SinghDiscussion:https://postgr.es/m/CALj2ACWfGDLQ2cy7ZKwxnJqbDkO6Yvqqrqxne5ZN4HYm=PRTGg@mail.gmail.com1 parentfac3146 commit8ac5a2f
1 file changed
+1
-5
lines changedLines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
503 |
| - | |
| 503 | + | |
504 | 504 |
| |
505 | 505 |
| |
506 | 506 |
| |
| |||
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 | 526 |
| |
531 | 527 |
| |
532 | 528 |
| |
|
0 commit comments
Comments
(0)