- Notifications
You must be signed in to change notification settings - Fork28
Commit07e8b6a
committed
Don't allow walsender to send WAL data until it's been safely fsync'd on the
master. Otherwise a subsequent crash could cause the master to lose WAL thathas already been applied on the slave, resulting in the slave being out ofsync and soon corrupt. Per recent discussion and an example from Robert Haas.Fujii Masao1 parent8f4e121 commit07e8b6a
File tree
3 files changed
+20
-17
lines changed- src
- backend
- access/transam
- replication
- include/access
3 files changed
+20
-17
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
6803 | 6803 |
| |
6804 | 6804 |
| |
6805 | 6805 |
| |
6806 |
| - | |
| 6806 | + | |
| 6807 | + | |
6807 | 6808 |
| |
6808 | 6809 |
| |
6809 |
| - | |
| 6810 | + | |
6810 | 6811 |
| |
6811 | 6812 |
| |
6812 | 6813 |
| |
6813 | 6814 |
| |
6814 | 6815 |
| |
6815 | 6816 |
| |
6816 |
| - | |
| 6817 | + | |
6817 | 6818 |
| |
6818 | 6819 |
| |
6819 | 6820 |
| |
|
Lines changed: 13 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| |||
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
26 |
| - | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 | 30 |
| |
32 |
| - | |
| 31 | + | |
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
| |||
641 | 640 |
| |
642 | 641 |
| |
643 | 642 |
| |
644 |
| - | |
| 643 | + | |
645 | 644 |
| |
646 | 645 |
| |
647 | 646 |
| |
| |||
663 | 662 |
| |
664 | 663 |
| |
665 | 664 |
| |
666 |
| - | |
667 |
| - | |
668 |
| - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
669 | 671 |
| |
670 |
| - | |
| 672 | + | |
671 | 673 |
| |
672 | 674 |
| |
673 | 675 |
| |
| |||
679 | 681 |
| |
680 | 682 |
| |
681 | 683 |
| |
682 |
| - | |
| 684 | + | |
683 | 685 |
| |
684 | 686 |
| |
685 | 687 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
294 | 294 |
| |
295 | 295 |
| |
296 | 296 |
| |
297 |
| - | |
| 297 | + | |
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
|
0 commit comments
Comments
(0)