forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4ed8f09
committed
Index SLRUs by 64-bit integers rather than by 32-bit integers
We've had repeated bugs in the area of handling SLRU wraparound in the past,some of which have caused data loss. Switching to an indexing system for SLRUsthat does not wrap around should allow us to get rid of a whole bunchof problems and improve the overall reliability of the system.This particular patch however only changes the indexing and doesn't addressthe wraparound per se. This is going to be done in the following patches.Author: Maxim Orlov, Aleksander Alekseev, Alexander Korotkov, Teodor SigaevAuthor: Nikita Glukhov, Pavel Borisov, Yura SokolovReviewed-by: Jacob Champion, Heikki Linnakangas, Alexander KorotkovReviewed-by: Japin Li, Pavel Borisov, Tom Lane, Peter Eisentraut, Andres FreundReviewed-by: Andrey Borodin, Dilip Kumar, Aleksander AlekseevDiscussion:https://postgr.es/m/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.comDiscussion:https://postgr.es/m/CAJ7c6TPDOYBYrnCAeyndkBktO0WG2xSdYduTF0nxq%2BvfkmTF5Q%40mail.gmail.com1 parenta916b47 commit4ed8f09
File tree
18 files changed
+303
-202
lines changed- src
- backend
- access
- rmgrdesc
- transam
- commands
- storage/lmgr
- include
- access
- storage
- test/modules/test_slru
- expected
18 files changed
+303
-202
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 |
| - | |
31 |
| - | |
| 30 | + | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
39 |
| - | |
| 38 | + | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
| 31 | + | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
39 |
| - | |
| 38 | + | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 |
| - | |
61 |
| - | |
| 60 | + | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
|
Lines changed: 37 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 |
| |
67 | 77 |
| |
68 | 78 |
| |
| |||
89 | 99 |
| |
90 | 100 |
| |
91 | 101 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 |
| |
97 | 107 |
| |
98 | 108 |
| |
99 |
| - | |
| 109 | + | |
100 | 110 |
| |
101 | 111 |
| |
102 | 112 |
| |
103 | 113 |
| |
104 | 114 |
| |
105 | 115 |
| |
106 |
| - | |
| 116 | + | |
107 | 117 |
| |
108 | 118 |
| |
109 |
| - | |
| 119 | + | |
110 | 120 |
| |
111 | 121 |
| |
112 | 122 |
| |
| |||
162 | 172 |
| |
163 | 173 |
| |
164 | 174 |
| |
165 |
| - | |
| 175 | + | |
166 | 176 |
| |
167 | 177 |
| |
168 | 178 |
| |
| |||
236 | 246 |
| |
237 | 247 |
| |
238 | 248 |
| |
239 |
| - | |
| 249 | + | |
240 | 250 |
| |
241 | 251 |
| |
242 | 252 |
| |
| |||
245 | 255 |
| |
246 | 256 |
| |
247 | 257 |
| |
248 |
| - | |
| 258 | + | |
249 | 259 |
| |
250 | 260 |
| |
251 | 261 |
| |
| |||
271 | 281 |
| |
272 | 282 |
| |
273 | 283 |
| |
274 |
| - | |
| 284 | + | |
275 | 285 |
| |
276 | 286 |
| |
277 | 287 |
| |
| |||
337 | 347 |
| |
338 | 348 |
| |
339 | 349 |
| |
340 |
| - | |
| 350 | + | |
341 | 351 |
| |
342 | 352 |
| |
343 | 353 |
| |
| |||
411 | 421 |
| |
412 | 422 |
| |
413 | 423 |
| |
414 |
| - | |
| 424 | + | |
415 | 425 |
| |
416 | 426 |
| |
417 | 427 |
| |
| |||
637 | 647 |
| |
638 | 648 |
| |
639 | 649 |
| |
640 |
| - | |
| 650 | + | |
641 | 651 |
| |
642 | 652 |
| |
643 | 653 |
| |
| |||
697 | 707 |
| |
698 | 708 |
| |
699 | 709 |
| |
700 |
| - | |
| 710 | + | |
701 | 711 |
| |
702 | 712 |
| |
703 | 713 |
| |
| |||
734 | 744 |
| |
735 | 745 |
| |
736 | 746 |
| |
737 |
| - | |
| 747 | + | |
738 | 748 |
| |
739 | 749 |
| |
740 | 750 |
| |
| |||
754 | 764 |
| |
755 | 765 |
| |
756 | 766 |
| |
757 |
| - | |
| 767 | + | |
758 | 768 |
| |
759 | 769 |
| |
760 | 770 |
| |
| |||
773 | 783 |
| |
774 | 784 |
| |
775 | 785 |
| |
776 |
| - | |
| 786 | + | |
777 | 787 |
| |
778 | 788 |
| |
779 | 789 |
| |
| |||
838 | 848 |
| |
839 | 849 |
| |
840 | 850 |
| |
841 |
| - | |
| 851 | + | |
842 | 852 |
| |
843 | 853 |
| |
844 | 854 |
| |
| |||
877 | 887 |
| |
878 | 888 |
| |
879 | 889 |
| |
880 |
| - | |
| 890 | + | |
881 | 891 |
| |
882 | 892 |
| |
883 | 893 |
| |
| |||
930 | 940 |
| |
931 | 941 |
| |
932 | 942 |
| |
933 |
| - | |
| 943 | + | |
934 | 944 |
| |
935 | 945 |
| |
936 | 946 |
| |
| |||
949 | 959 |
| |
950 | 960 |
| |
951 | 961 |
| |
952 |
| - | |
| 962 | + | |
953 | 963 |
| |
954 | 964 |
| |
955 |
| - | |
| 965 | + | |
956 | 966 |
| |
957 | 967 |
| |
958 | 968 |
| |
| |||
963 | 973 |
| |
964 | 974 |
| |
965 | 975 |
| |
966 |
| - | |
| 976 | + | |
967 | 977 |
| |
968 | 978 |
| |
969 | 979 |
| |
| |||
991 | 1001 |
| |
992 | 1002 |
| |
993 | 1003 |
| |
994 |
| - | |
| 1004 | + | |
995 | 1005 |
| |
996 | 1006 |
| |
997 |
| - | |
| 1007 | + | |
998 | 1008 |
| |
999 | 1009 |
| |
1000 | 1010 |
| |
|
0 commit comments
Comments
(0)