Skip to content

Commit

Permalink
Debugging from transfers with UCSD.
Browse files Browse the repository at this point in the history
- Do not use POSC as this requires some fchmod support we don't have.
- Log the URL utilized for pull requests.
  • Loading branch information
bbockelm committed Mar 19, 2018
1 parent fb536d9 commit 85916d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tpc.cpp
Expand Up @@ -85,7 +85,9 @@ int TPCHandler::ProcessReq(XrdHttpExtReq &req) {
}
auto header = req.headers.find("Source");
if (header != req.headers.end()) {
return ProcessPullReq(PrepareURL(header->second), req);
std::string src = PrepareURL(header->second);
m_log.Emsg("ProcessReq", "Pull request from", src.c_str());
return ProcessPullReq(src, req);
}
header = req.headers.find("Destination");
if (header != req.headers.end()) {
Expand Down Expand Up @@ -434,7 +436,7 @@ int TPCHandler::ProcessPullReq(const std::string &resource, XrdHttpExtReq &req)
XrdSfsFileOpenMode mode = SFS_O_CREAT;
auto overwrite_header = req.headers.find("Overwrite");
if ((overwrite_header == req.headers.end()) || (overwrite_header->second == "T")) {
mode = SFS_O_TRUNC|SFS_O_POSC;
mode = SFS_O_TRUNC;
}
int streams = 1;
{
Expand Down

0 comments on commit 85916d7

Please sign in to comment.