forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit94a3373
committed
Rework new SLRU test with injection points
Rather than the SQL injection_points_load(), this commit changes theinjection point test introduced in768a9fd to rely on the twomacros INJECTION_POINT_LOAD() and INJECTION_POINT_CACHED(), that havebeen originally introduced for the sake of this test.This runs the test as a two-step process: load the injection point, thenrun its callback directly from the local cache loaded. What the testdid originally was also fine, but the point here is to have an examplein core of how to use these new macros.While on it, fix the header ordering in multixact.c, as pointed out byAlexander Korotkov. This was an oversight in768a9fd.Per discussion with Álvaro Herrera.Author: Michael PaquierDiscussion:https://postgr.es/m/ZsUnJUlSOBNAzwW1@paquier.xyzDiscussion:https://postgr.es/m/CAPpHfduzaBz7KMhwuVOZMTpG=JniPG4aUosXPZCxZydmzq_oEQ@mail.gmail.com1 parent2e35c67 commit94a3373
File tree
2 files changed
+6
-4
lines changed- src
- backend/access/transam
- test/modules/test_slru/t
2 files changed
+6
-4
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
92 | 91 |
| |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
855 | 855 |
| |
856 | 856 |
| |
857 | 857 |
| |
| 858 | + | |
| 859 | + | |
| 860 | + | |
858 | 861 |
| |
859 | 862 |
| |
860 | 863 |
| |
| |||
869 | 872 |
| |
870 | 873 |
| |
871 | 874 |
| |
872 |
| - | |
| 875 | + | |
873 | 876 |
| |
874 | 877 |
| |
875 | 878 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
68 | 67 |
| |
69 | 68 |
| |
70 | 69 |
| |
|
0 commit comments
Comments
(0)