summaryrefslogtreecommitdiff
path: root/src/SingleFileAllocationIterator.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/SingleFileAllocationIterator.cc
parent5c4a52ad741c66b4aa263a542da2c1e5546ca6bf (diff)
Removed use of O_DIRECT because it performs bad.
Diffstat (limited to 'src/SingleFileAllocationIterator.cc')
-rw-r--r--src/SingleFileAllocationIterator.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/SingleFileAllocationIterator.cc b/src/SingleFileAllocationIterator.cc
index 420ff699..a12df5db 100644
--- a/src/SingleFileAllocationIterator.cc
+++ b/src/SingleFileAllocationIterator.cc
@@ -56,11 +56,7 @@ SingleFileAllocationIterator::SingleFileAllocationIterator
offset_(offset),
totalLength_(totalLength),
buffer_(0)
-{
- if(offset_%ALIGNMENT != 0) {
- stream_->disableDirectIO();
- }
-}
+{}
SingleFileAllocationIterator::~SingleFileAllocationIterator()
{