diff --git a/ChangeLog b/ChangeLog index faddcc0e..4869158d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-02-07 Tatsuhiro Tsujikawa + + Fixed the bug that --file-allocation=falloc doesn't work with + single file download. + * src/AbstractSingleDiskAdaptor.cc + 2010-02-03 Tatsuhiro Tsujikawa Release 1.8.2 diff --git a/src/AbstractSingleDiskAdaptor.cc b/src/AbstractSingleDiskAdaptor.cc index 27a650a9..016bd3a0 100644 --- a/src/AbstractSingleDiskAdaptor.cc +++ b/src/AbstractSingleDiskAdaptor.cc @@ -97,13 +97,13 @@ FileAllocationIteratorHandle AbstractSingleDiskAdaptor::fileAllocationIterator() #ifdef HAVE_POSIX_FALLOCATE if(_fallocate) { SharedHandle h - (new FallocFileAllocationIterator(this, size(), totalLength)); + (new FallocFileAllocationIterator(diskWriter.get(), size(), totalLength)); return h; } else #endif // HAVE_POSIX_FALLOCATE { SingleFileAllocationIteratorHandle h - (new SingleFileAllocationIterator(this, size(), totalLength)); + (new SingleFileAllocationIterator(diskWriter.get(),size(),totalLength)); h->init(); return h; }