summaryrefslogtreecommitdiff
path: root/src/TruncFileAllocationIterator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/TruncFileAllocationIterator.cc')
-rw-r--r--src/TruncFileAllocationIterator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TruncFileAllocationIterator.cc b/src/TruncFileAllocationIterator.cc
index e79467e4..212ae651 100644
--- a/src/TruncFileAllocationIterator.cc
+++ b/src/TruncFileAllocationIterator.cc
@@ -46,7 +46,7 @@ TruncFileAllocationIterator::TruncFileAllocationIterator
void TruncFileAllocationIterator::allocateChunk()
{
- stream_->truncate(totalLength_);
+ stream_->allocate(0, totalLength_, true);
offset_ = totalLength_;
}