- Notifications
You must be signed in to change notification settings - Fork5
Commit973a210
committed
Tweak mdnblocks() to avoid doing lseek() on segments that it has
previously determined not to be the last segment of a relation.This reduces the expected cost to one seek, rather than one seek persegment. We can get away with this because truncation of a relationwill cause a relcache flush and so the md.c file descriptor will beclosed; when it is re-opened we will re-determine the last segment.1 parentc9cf982 commit973a210
1 file changed
+16
-1
lines changedLines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
569 | 569 |
| |
570 | 570 |
| |
571 | 571 |
| |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
572 | 587 |
| |
573 | 588 |
| |
574 | 589 |
| |
|
0 commit comments
Comments
(0)