Commit be2f073
committed
Fix zeroing of pg_serial page without SLRU bank lock
Bug in commit 53c2a97: we failed to acquire the correct SLRU bank
lock when iterating to zero-out intermediate pages in predicate.c.
Rewrite the code block so that we follow the locking protocol correctly.
Also update an outdated comment in the same file -- SerialSLRULock
exists no more.
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Discussion: https://postgr.es/m/2a25eaf4-a3a4-5fd1-6241-9d7c73142085@gmail.com1 parent bf1e650 commit be2f073
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
912 | | - | |
913 | 911 | | |
914 | 912 | | |
915 | | - | |
916 | | - | |
| 913 | + | |
| 914 | + | |
917 | 915 | | |
918 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
919 | 921 | | |
| 922 | + | |
920 | 923 | | |
921 | | - | |
922 | 924 | | |
923 | 925 | | |
| 926 | + | |
| 927 | + | |
924 | 928 | | |
| 929 | + | |
925 | 930 | | |
926 | 931 | | |
927 | 932 | | |
| |||
0 commit comments