diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-16 13:57:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-16 13:57:31 +0900 |
| commit | 5bbfa742fcd43011c04fd053703d7c8835283d01 (patch) | |
| tree | 734b73502ea2b126e108c0bc9703e40a2f22ba4f /src/FileAllocationEntry.cc | |
| parent | 5c4a52ad741c66b4aa263a542da2c1e5546ca6bf (diff) | |
Removed use of O_DIRECT because it performs bad.
Diffstat (limited to 'src/FileAllocationEntry.cc')
| -rw-r--r-- | src/FileAllocationEntry.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/FileAllocationEntry.cc b/src/FileAllocationEntry.cc index 2d873e4b..2d96f756 100644 --- a/src/FileAllocationEntry.cc +++ b/src/FileAllocationEntry.cc @@ -44,14 +44,10 @@ namespace aria2 { FileAllocationEntry::FileAllocationEntry(RequestGroup* requestGroup, Command* nextCommand): RequestGroupEntry(requestGroup, nextCommand), fileAllocationIterator_(requestGroup->getPieceStorage()->getDiskAdaptor()->fileAllocationIterator()) -{ - getRequestGroup()->getPieceStorage()->getDiskAdaptor()->enableDirectIO(); -} +{} FileAllocationEntry:: ~FileAllocationEntry() -{ - getRequestGroup()->getPieceStorage()->getDiskAdaptor()->disableDirectIO(); -} +{} off_t FileAllocationEntry::getCurrentLength() { @@ -73,9 +69,4 @@ void FileAllocationEntry::allocateChunk() fileAllocationIterator_->allocateChunk(); } -void FileAllocationEntry::disableDirectIO() -{ - getRequestGroup()->getPieceStorage()->getDiskAdaptor()->disableDirectIO(); -} - } // namespace aria2 |
