Commit 664d7dbf authored by Rosa Maria Garcia Rioja's avatar Rosa Maria Garcia Rioja
Browse files

In case of xroot get & set the full physical filename

parent 777931c1
......@@ -136,7 +136,12 @@ namespace castor{
if(switchDiskCopiesForJob()) {
if(stgRequestHelper->subrequest->answered() == 0) {
stgReplyHelper = new ReplyHelper();
if ( stgRequestHelper->subrequest->protocol() == "xroot"){
std::string filepath = stgRequestHelper->stagerService->selectPhysicalFileName(&(stgCnsHelper->cnsFileid), stgRequestHelper->svcClass);
stgReplyHelper->setAndSendIoResponse(stgRequestHelper,&(stgCnsHelper->cnsFileid), 0, "",filepath);
}else{
stgReplyHelper->setAndSendIoResponse(stgRequestHelper,&(stgCnsHelper->cnsFileid), 0, "");
}
stgReplyHelper->endReplyToClient(stgRequestHelper);
delete stgReplyHelper;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment