- Notifications
You must be signed in to change notification settings - Fork5
Commit304160c
committed
Fix ReadBuffer() to correctly handle the case where it's trying to extend
the relation but it finds a pre-existing valid buffer. The buffer does notcorrespond to any page known to the kernel, so we *must* do smgrextend toensure that the space becomes allocated. The 7.x branches all do thiscorrectly, but the corner case got lost somewhere during 8.0 bufmgr rewrites.(My fault no doubt :-( ... I think I assumed that such a buffer must benot-BM_VALID, which is not so.)1 parent6d41b14 commit304160c
1 file changed
+40
-6
lines changedLines changed: 40 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
168 |
| - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 |
| |
170 |
| - | |
171 |
| - | |
| 175 | + | |
| 176 | + | |
172 | 177 |
| |
173 |
| - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
174 | 208 |
| |
175 | 209 |
| |
176 | 210 |
| |
|
0 commit comments
Comments
(0)