Commit fe7bbc4
committed
Fix remote position tracking in logical replication
We need to set the origin remote position to end_lsn, not commit_lsn, as
commit_lsn is the start of commit record, and we use the origin remote
position as start position when restarting replication stream. If we'd
use commit_lsn, we could request data that we already received from the
remote server after a crash of a downstream server.
Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>1 parent b38006e commit fe7bbc4
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | 424 | | |
428 | 425 | | |
429 | 426 | | |
| |||
443 | 440 | | |
444 | 441 | | |
445 | 442 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 443 | | |
450 | 444 | | |
451 | 445 | | |
452 | 446 | | |
453 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
454 | 455 | | |
455 | 456 | | |
456 | 457 | | |
| |||
0 commit comments