Commit 7ac4a38
committed
Don't create "holes" in BufFiles, in the new logtape code.
The "Simplify tape block format" commit ignored the rule that blocks
returned by ltsGetFreeBlock() must be written out in the same order, at
least in the first write pass. To fix, relax that requirement, by making
ltsWriteBlock() to detect if it's about to create a "hole" in the
underlying BufFile, and fill it with zeros instead.
Reported, analysed, and reviewed by Peter Geoghegan.
Discussion: https://www.postgresql.org/message-id/CAM3SWZRWdNtkhiG0GyiX_1mUAypiK3dV6-6542pYe2iEL-foTA@mail.gmail.com1 parent bc1686f commit 7ac4a38
1 file changed
+41
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
| |||
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
199 | 227 | | |
200 | 228 | | |
201 | 229 | | |
202 | 230 | | |
203 | 231 | | |
204 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
205 | 237 | | |
206 | 238 | | |
207 | 239 | | |
| |||
281 | 313 | | |
282 | 314 | | |
283 | 315 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 316 | | |
288 | 317 | | |
289 | 318 | | |
| |||
304 | 333 | | |
305 | 334 | | |
306 | 335 | | |
307 | | - | |
| 336 | + | |
308 | 337 | | |
309 | 338 | | |
310 | 339 | | |
| |||
360 | 389 | | |
361 | 390 | | |
362 | 391 | | |
363 | | - | |
| 392 | + | |
| 393 | + | |
364 | 394 | | |
365 | 395 | | |
366 | 396 | | |
| |||
858 | 888 | | |
859 | 889 | | |
860 | 890 | | |
861 | | - | |
| 891 | + | |
862 | 892 | | |
0 commit comments