Skip to content
Snippets Groups Projects
Commit b7c73ebf authored by Michael Davis's avatar Michael Davis
Browse files

[EOS-CTA] SSI server returns archive ID

This is deprecated but is useful for testing: it allows eoscta_stub to
be dropped in in place of the "cta archive" command in the WFE in the
current test setup.
parent 3b378946
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ include_directories (${CMAKE_SOURCE_DIR}/tapeserver/)
#
# Get some extra debug messages on stdout
add_definitions(-DXRDSSI_DEBUG)
#add_definitions(-DXRDSSI_DEBUG)
# XRootD must be compiled with the SSI extensions
find_package(xrootd REQUIRED)
......
......@@ -112,7 +112,11 @@ void base64Decode(eos::wfe::Notification &notification, const std::string &argva
else if(key == "xs") notification.mutable_file()->mutable_cks()->set_value(val);
else if(key == "mode") notification.mutable_file()->set_mode(stoi(val));
else if(key == "file") notification.mutable_file()->set_lpath(val);
else { cout << "No match in protobuf for fmd:" << key << "=" << val << endl; }
else {
#ifdef XRDSSI_DEBUG
cout << "No match in protobuf for fmd:" << key << "=" << val << endl;
#endif
}
}
// Process directory metadata
......@@ -154,7 +158,11 @@ void base64Decode(eos::wfe::Notification &notification, const std::string &argva
notification.mutable_directory()->mutable_xattr()->insert(google::protobuf::MapPair<string,string>(xattrn, val));
}
else { cout << "No match in protobuf for dmd:" << key << "=" << val << endl; }
else {
#ifdef XRDSSI_DEBUG
cout << "No match in protobuf for dmd:" << key << "=" << val << endl;
#endif
}
}
}
......
......@@ -114,11 +114,16 @@ void RequestProc<eos::wfe::Notification, eos::wfe::Response, eos::wfe::Alert>::E
// Queue the request
uint64_t archiveFileId = scheduler->queueArchive(client_username, request, lc);
std::cout << "<eos::wfe::path::fxattr:sys.archiveFileId>" << archiveFileId << std::endl;
std::string result_str = "<eos::wfe::path::fxattr:sys.archiveFileId>" + std::to_string(archiveFileId);
std::cout << result_str << std::endl;
// Set metadata
m_metadata.set_type(eos::wfe::Response::RSP_SUCCESS);
// Temporary hack to send back archiveFileId (deprecated)
m_metadata.set_message_txt(result_str);
}
catch(std::exception &ex)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment