Переглянути джерело

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
Tatsuhiro Tsujikawa 15 роки тому
батько
коміт
978258d2a4
2 змінених файлів з 8 додано та 2 видалено
  1. 6 0
      ChangeLog
  2. 2 2
      src/AbstractSingleDiskAdaptor.cc

+ 6 - 0
ChangeLog

@@ -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

+ 2 - 2
src/AbstractSingleDiskAdaptor.cc

@@ -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;
     }