diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-03-24 15:31:46 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-03-24 15:31:46 +0000 |
| commit | fe614395d60da75836dbfb3f0a593d91b4024a89 (patch) | |
| tree | 1271813df3baf01ab1e8b0ff1c1f453fd4263a76 | |
| parent | 289ae1b635a1d046be6958c4ec27b6a26067857e (diff) | |
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed duplicate enableDirectIO() call.
* src/MultiFileAllocationIterator.cc
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/MultiFileAllocationIterator.cc | 1 |
2 files changed, 5 insertions, 1 deletions
@@ -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 |
