Skip to content

Commit

Permalink
Merge pull request #7653 from chaen/8.0_fix_rmsValidSE
Browse files Browse the repository at this point in the history
[8.0] Remove dead code path in ReplicateAndRegister
  • Loading branch information
fstagni committed Jul 5, 2024
2 parents 96a985c + 4dbf0ce commit 71def4b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,6 @@ def dmTransfer(self, fromFTS=False):
# All source SEs are banned, delay execution by 1 hour
delayExecution = 60
continue
# # get the first one in the list
if sourceSE not in validReplicas:
if sourceSE:
err = "File not at specified source"
errors[err] += 1
self.log.warn(f"{lfn} is not at specified sourceSE {sourceSE}, changed to {validReplicas[0]}")
sourceSE = validReplicas[0]

# # loop over targetSE
catalogs = self.operation.Catalog
Expand All @@ -623,6 +616,7 @@ def dmTransfer(self, fromFTS=False):
if targetSE in validReplicas:
self.log.warn(f"Request to replicate {lfn} to an existing location: {targetSE}")
continue
sourceSE = self.operation.SourceSE if self.operation.SourceSE else None
res = self.dm.replicateAndRegister(lfn, targetSE, sourceSE=sourceSE, catalog=catalogs)
if res["OK"]:
if lfn in res["Value"]["Successful"]:
Expand Down

0 comments on commit 71def4b

Please sign in to comment.