- Notifications
You must be signed in to change notification settings - Fork5
Commitb4a0223
committed
Simplify and improve ProcessStandbyHSFeedbackMessage logic.
There's no need to clamp the standby's xmin to be greater thanGetOldestXmin's result; if there were any such need this logic would behopelessly inadequate anyway, because it fails to account forwithin-database versus cluster-wide values of GetOldestXmin. So get rid ofthat, and just rely on sanity-checking that the xmin is not wrapped aroundrelative to the nextXid counter. Also, don't reset the walsender's xmin ifthe current feedback xmin is indeed out of range; that just creates moreproblems than we already had. Lastly, don't bother to take theProcArrayLock; there's no need to do that to set xmin.Also improve the comments about this in GetOldestXmin itself.1 parentdce92c6 commitb4a0223
2 files changed
+79
-76
lines changedLines changed: 48 additions & 57 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
642 | 642 |
| |
643 | 643 |
| |
644 | 644 |
| |
645 |
| - | |
| 645 | + | |
| 646 | + | |
646 | 647 |
| |
647 |
| - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
648 | 651 |
| |
649 | 652 |
| |
650 | 653 |
| |
651 | 654 |
| |
652 | 655 |
| |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
653 | 660 |
| |
654 |
| - | |
655 |
| - | |
656 |
| - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
657 | 666 |
| |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
664 |
| - | |
665 |
| - | |
666 |
| - | |
667 |
| - | |
668 |
| - | |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 |
| - | |
681 |
| - | |
682 |
| - | |
683 |
| - | |
684 |
| - | |
685 |
| - | |
686 |
| - | |
687 |
| - | |
688 |
| - | |
689 |
| - | |
| 667 | + | |
690 | 668 |
| |
691 |
| - | |
692 |
| - | |
693 |
| - | |
694 |
| - | |
695 |
| - | |
696 |
| - | |
697 |
| - | |
698 |
| - | |
699 |
| - | |
700 |
| - | |
701 |
| - | |
702 |
| - | |
703 |
| - | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
704 | 673 |
| |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
705 | 682 |
| |
706 | 683 |
| |
707 |
| - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
708 | 704 |
| |
709 |
| - | |
710 |
| - | |
711 |
| - | |
712 |
| - | |
713 |
| - | |
714 |
| - | |
| 705 | + | |
715 | 706 |
| |
716 | 707 |
| |
717 | 708 |
| |
|
Lines changed: 31 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
997 | 997 |
| |
998 | 998 |
| |
999 | 999 |
| |
1000 |
| - | |
1001 |
| - | |
1002 |
| - | |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
1012 | 1000 |
| |
1013 | 1001 |
| |
1014 | 1002 |
| |
1015 | 1003 |
| |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1016 | 1026 |
| |
1017 | 1027 |
| |
1018 | 1028 |
| |
| |||
1045 | 1055 |
| |
1046 | 1056 |
| |
1047 | 1057 |
| |
1048 |
| - | |
| 1058 | + | |
1049 | 1059 |
| |
1050 | 1060 |
| |
1051 | 1061 |
| |
| |||
1091 | 1101 |
| |
1092 | 1102 |
| |
1093 | 1103 |
| |
1094 |
| - | |
1095 |
| - | |
| 1104 | + | |
| 1105 | + | |
1096 | 1106 |
| |
1097 | 1107 |
| |
1098 | 1108 |
| |
1099 | 1109 |
| |
1100 |
| - | |
1101 |
| - | |
1102 |
| - | |
1103 |
| - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1104 | 1116 |
| |
1105 | 1117 |
| |
1106 | 1118 |
| |
|
0 commit comments
Comments
(0)