summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-01-24 09:00:36 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-01-24 09:00:36 +0000
commit8ca9db9f3ee007d40b85339f81a39ea3c1a22616 (patch)
tree70ad188c3350794c2ed42cdc817cda8cd51fc03b /src/FileAllocationCommand.cc
parentea370b864e5ebffa71d8d21d2cf0835c5780cd3c (diff)
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced FileAllocationMan with SequentialPicker<FileAllocationEntry>. * src/BtCheckIntegrityEntry.cc * src/ConsoleStatCalc.cc * src/DownloadEngine.cc * src/DownloadEngine.h * src/DownloadEngineFactory.cc * src/FileAllocationCommand.cc * src/FileAllocationDispatcherCommand.cc * src/FileAllocationMan.h * src/Makefile.am * src/SequentialPicker.h * src/StatCalc.h * src/StreamCheckIntegrityEntry.cc * test/Makefile.am * test/SequentialPickerTest.cc
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index 2fc94481..5f39c52c 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -60,7 +60,7 @@ bool FileAllocationCommand::executeInternal()
logger->debug(MSG_ALLOCATION_COMPLETED,
_timer.difference(),
Util::itos(_requestGroup->getTotalLength(), true).c_str());
- _e->_fileAllocationMan->markCurrentFileAllocationEntryDone();
+ _e->_fileAllocationMan->dropPickedEntry();
std::deque<Command*> commands;
_fileAllocationEntry->prepareForNextAction(commands, _e);
@@ -75,7 +75,7 @@ bool FileAllocationCommand::executeInternal()
bool FileAllocationCommand::handleException(Exception& e)
{
- _e->_fileAllocationMan->markCurrentFileAllocationEntryDone();
+ _e->_fileAllocationMan->dropPickedEntry();
logger->error(MSG_FILE_ALLOCATION_FAILURE, e, cuid);
logger->error(MSG_DOWNLOAD_NOT_COMPLETE, cuid, _requestGroup->getFilePath().c_str());
return true;