- Notifications
You must be signed in to change notification settings - Fork5
Commitb56fb69
committed
Fix excessive memory consumption in the new sort pre-reading code.
LogicalTapeRewind() should not allocate large read buffer, if the tapeis completely empty. The calling code relies on that, for itscalculation of how much memory to allocate for the read buffers. Thatlead to massive overallocation of memory, if maxTapes was high, butonly a few tapes were actually used.Reported by Tomas VondraDiscussion: <7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.com>1 parentbfe2e84 commitb56fb69
1 file changed
+8
-3
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
778 | 778 |
| |
779 | 779 |
| |
780 | 780 |
| |
781 |
| - | |
| 781 | + | |
782 | 782 |
| |
783 | 783 |
| |
784 |
| - | |
785 |
| - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
786 | 791 |
| |
787 | 792 |
| |
788 | 793 |
| |
|
0 commit comments
Comments
(0)