From 8ca9db9f3ee007d40b85339f81a39ea3c1a22616 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 24 Jan 2009 09:00:36 +0000 Subject: 2009-01-24 Tatsuhiro Tsujikawa Replaced FileAllocationMan with SequentialPicker. * 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 --- src/FileAllocationCommand.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/FileAllocationCommand.cc') 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 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; -- cgit