summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-12-05 17:11:22 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-12-05 17:11:22 +0000
commit2850c16f8aff7637b3a2b602f98805c2e704ddc5 (patch)
treee48ca6f186b375db3b7b0a988f1a59f94e271e9f /src/CheckIntegrityEntry.cc
parent84e896eb095ddc9ea94942233711c89a903dfa5c (diff)
2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Rewritten direct I/O support routine * src/SingleFileAllocationIterator.cc * src/MultiDiskAdaptor.{h, cc} * src/ByteArrayDiskWriter.h * src/AbstractSingleDiskAdaptor.h * src/AbstractDiskWriter.cc * src/DefaultPieceStorage.cc * src/DiskWriter.h * src/BinaryStream.h * src/IteratableChunkChecksumValidator.cc * src/IteratableChecksumValidator.cc * src/CheckIntegrityEntry.cc * src/FileAllocationEntry.cc
Diffstat (limited to 'src/CheckIntegrityEntry.cc')
-rw-r--r--src/CheckIntegrityEntry.cc17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc
index f05ba3d1..43f5a6a1 100644
--- a/src/CheckIntegrityEntry.cc
+++ b/src/CheckIntegrityEntry.cc
@@ -36,27 +36,14 @@
#include "Command.h"
#include "RequestGroup.h"
#include "IteratableValidator.h"
-#include "prefs.h"
-#include "PieceStorage.h"
-#include "DownloadContext.h"
-#include "DiskAdaptor.h"
-#include "Option.h"
CheckIntegrityEntry::CheckIntegrityEntry(RequestGroup* requestGroup,
Command* nextCommand):
RequestGroupEntry(requestGroup, nextCommand),
_validator(0)
-{
- if(_requestGroup->getOption()->getAsBool(PREF_ENABLE_DIRECT_IO) &&
- _requestGroup->getDownloadContext()->getFileEntries().size() == 1) {
- _requestGroup->getPieceStorage()->getDiskAdaptor()->enableDirectIO();
- }
-}
+{}
-CheckIntegrityEntry::~CheckIntegrityEntry()
-{
- // TODO DiskAdaptor::disableIO() will be called from ~FileAllocationEntry
-}
+CheckIntegrityEntry::~CheckIntegrityEntry() {}
void CheckIntegrityEntry::validateChunk()
{