From fe614395d60da75836dbfb3f0a593d91b4024a89 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 Mar 2009 15:31:46 +0000 Subject: [PATCH] 2009-03-25 Tatsuhiro Tsujikawa Removed duplicate enableDirectIO() call. * src/MultiFileAllocationIterator.cc --- ChangeLog | 5 +++++ src/MultiFileAllocationIterator.cc | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8cb73791..8d3d1fb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-25 Tatsuhiro Tsujikawa + + Removed duplicate enableDirectIO() call. + * src/MultiFileAllocationIterator.cc + 2009-03-25 Tatsuhiro Tsujikawa Replaced std::vector _sortedPieceStats diff --git a/src/MultiFileAllocationIterator.cc b/src/MultiFileAllocationIterator.cc index 43643de9..63654a0e 100644 --- a/src/MultiFileAllocationIterator.cc +++ b/src/MultiFileAllocationIterator.cc @@ -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