Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
4c479385
Commit
4c479385
authored
Jun 13, 2013
by
Sebastien Ponce
Browse files
added a check for empty list of sources, although it should not happen
parent
4adf8d98
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/scheduler/transfermanager/dispatcher.py
View file @
4c479385
...
...
@@ -403,6 +403,12 @@ class D2DDispatcherThread(AbstractDispatcherThread):
def
_scheduleD2d
(
self
,
srcTransfer
,
sourceFileSystems
,
destFilesystems
):
'''Schedules a disk to disk copy on the source and destinations and handle issues '''
# check whether the sources are not empty
if
sourceFileSystems
==
None
:
# fail the transfer immediately as we have nowhere to go. This will log the error too
self
.
updateDBQueue
.
put
((
srcTransfer
.
transferId
,
srcTransfer
.
fileId
,
1721
,
# 1721 = ESTSCHEDERR
'No source found'
,
srcTransfer
.
reqId
))
return
# check whether the destinations are not empty
if
destFilesystems
==
None
:
# fail the transfer immediately as we have nowhere to go. This will log the error too
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment