2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed the bug that --file-allocation=falloc doesn't work with
	single file download.
	* src/AbstractSingleDiskAdaptor.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-02-06 15:55:31 +00:00
parent a1a58165a0
commit 978258d2a4
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that --file-allocation=falloc doesn't work with
single file download.
* src/AbstractSingleDiskAdaptor.cc
2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Release 1.8.2

View File

@ -97,13 +97,13 @@ FileAllocationIteratorHandle AbstractSingleDiskAdaptor::fileAllocationIterator()
#ifdef HAVE_POSIX_FALLOCATE
if(_fallocate) {
SharedHandle<FallocFileAllocationIterator> 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;
}