forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit712704d
committed
Remove redundant ftruncate() for POSIX DSM memory.
In early releases of the DSM infrastructure, it was possible to resizesegments. That was removed in release 12 by commit3c60d0f. Now theftruncate() + posix_fallocate() sequence during DSM segment creation hasa redundant step: we're always extending from zero to the desired size,so we might as well just call posix_fallocate().Let's also include the remaining ftruncate() call (non-Linux POSIXsystems) in the wait event reporting, for good measure.Discussion:https://postgr.es/m/CA%2BhUKGJSm-nq8s%2B_59zb7NbFQF-OS%3DxTnTAiGLrQpuSmU2y_1A%40mail.gmail.com1 parent4518c79 commit712704d
1 file changed
+25
-29
lines changedLines changed: 25 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
| 367 | + | |
| 368 | + | |
373 | 369 |
| |
374 |
| - | |
375 |
| - | |
| 370 | + | |
| 371 | + | |
376 | 372 |
| |
377 | 373 |
| |
378 | 374 |
| |
379 | 375 |
| |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
380 | 380 |
| |
381 |
| - | |
382 |
| - | |
| 381 | + | |
383 | 382 |
| |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
390 |
| - | |
391 |
| - | |
392 |
| - | |
393 |
| - | |
394 |
| - | |
| 383 | + | |
| 384 | + | |
395 | 385 |
| |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
404 | 400 |
| |
405 | 401 |
| |
406 | 402 |
| |
|
0 commit comments
Comments
(0)