Commit fd0fda6
pg::wal::receive: make lsn_to_timeline public
External WAL-processing tools that stream replication (e.g. the wal-listener
synchronous receiver) need to resolve which timeline owns a resume LSN by
walking a `TIMELINE_HISTORY` response — exactly what the private
`lsn_to_timeline` already does. They currently duplicate the parser byte-for-
byte. Expose it (follow-up to #19, "Expose replication + object-storage
primitives") so the logic lives in one place.
No behavior change; the existing unit test still covers it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0bbed31 commit fd0fda6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
653 | | - | |
| 652 | + | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| |||
0 commit comments