- Notifications
You must be signed in to change notification settings - Fork28
Commitfe7bbc4
committed
Fix remote position tracking in logical replication
We need to set the origin remote position to end_lsn, not commit_lsn, ascommit_lsn is the start of commit record, and we use the origin remoteposition as start position when restarting replication stream. If we'duse commit_lsn, we could request data that we already received from theremote server after a crash of a downstream server.Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>1 parentb38006e commitfe7bbc4
1 file changed
+7
-6
lines changedLines changed: 7 additions & 6 deletions
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
Comments
(0)