2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Removed duplicate enableDirectIO() call.
	* src/MultiFileAllocationIterator.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-03-24 15:31:46 +00:00
parent 289ae1b635
commit fe614395d6
2 changed files with 5 additions and 1 deletions

View File

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

View File

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