summaryrefslogtreecommitdiff
path: root/src/FileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-16 13:57:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-16 13:57:31 +0900
commit5bbfa742fcd43011c04fd053703d7c8835283d01 (patch)
tree734b73502ea2b126e108c0bc9703e40a2f22ba4f /src/FileAllocationEntry.cc
parent5c4a52ad741c66b4aa263a542da2c1e5546ca6bf (diff)
Removed use of O_DIRECT because it performs bad.
Diffstat (limited to 'src/FileAllocationEntry.cc')
-rw-r--r--src/FileAllocationEntry.cc13
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