diff options
Diffstat (limited to 'src/FileAllocationDispatcherCommand.cc')
| -rw-r--r-- | src/FileAllocationDispatcherCommand.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FileAllocationDispatcherCommand.cc b/src/FileAllocationDispatcherCommand.cc index 72622dfe..b6ee18fa 100644 --- a/src/FileAllocationDispatcherCommand.cc +++ b/src/FileAllocationDispatcherCommand.cc @@ -56,9 +56,8 @@ bool FileAllocationDispatcherCommand::execute() if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) { return true; } - if(_e->_fileAllocationMan->nextFileAllocationEntryExists() && - !_e->_fileAllocationMan->isFileAllocationBeingExecuted()) { - FileAllocationEntryHandle entry = _e->_fileAllocationMan->popNextFileAllocationEntry(); + if(_e->_fileAllocationMan->hasNext() && !_e->_fileAllocationMan->isPicked()) { + FileAllocationEntryHandle entry = _e->_fileAllocationMan->pickNext(); int32_t newCUID = _e->newCUID(); logger->info(MSG_FILE_ALLOCATION_DISPATCH, newCUID); FileAllocationCommand* command = |
