mirror of https://github.com/aria2/aria2
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed duplicate enableDirectIO() call. * src/MultiFileAllocationIterator.ccpull/1/head
parent
289ae1b635
commit
fe614395d6
|
@ -1,3 +1,8 @@
|
|||
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed duplicate enableDirectIO() call.
|
||||
* src/MultiFileAllocationIterator.cc
|
||||
|
||||
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
|
||||
|
|
|
@ -59,7 +59,6 @@ void MultiFileAllocationIterator::allocateChunk()
|
|||
FileEntryHandle fileEntry = entry->getFileEntry();
|
||||
// Open file before calling DiskWriterEntry::size()
|
||||
_diskAdaptor->openIfNot(entry, &DiskWriterEntry::openFile);
|
||||
entry->enableDirectIO();
|
||||
if(entry->needsFileAllocation() && entry->size() < fileEntry->getLength()) {
|
||||
// Calling private function of MultiDiskAdaptor.
|
||||
_fileAllocationIterator.reset
|
||||
|
|
Loading…
Reference in New Issue