Skip to content

Commit b632e70

Browse files
committed
If fails on cache, use main redirector
1 parent a823ba0 commit b632e70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/stashcp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def doStashCpSingle(sourceFile, destination, cache, debug=False):
131131
es_send(payload)
132132

133133
else: #pull from origin
134-
logging.warning("XrdCP from cache failed on %s, pulling from origin", cache)
135-
cache="root://stash.osgconnect.net"
134+
logging.warning("XrdCP from cache failed on %s, pulling from main redirector", cache)
135+
cache=main_redirector
136136
start3 = int(time.time()*1000)
137137
xrd_exit=timed_transfer(filename=sourceFile, debug=debug, cache=cache, destination=destination)
138138
end3=int(time.time()*1000)

0 commit comments

Comments
 (0)