summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-24 15:31:46 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-24 15:31:46 +0000
commitfe614395d60da75836dbfb3f0a593d91b4024a89 (patch)
tree1271813df3baf01ab1e8b0ff1c1f453fd4263a76
parent289ae1b635a1d046be6958c4ec27b6a26067857e (diff)
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed duplicate enableDirectIO() call. * src/MultiFileAllocationIterator.cc
-rw-r--r--ChangeLog5
-rw-r--r--src/MultiFileAllocationIterator.cc1
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cb73791..8d3d1fb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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
with std::vector<size_t> _sortedPieceStatIndexes to reduce the
cost of std::rotate().
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