Skip to content
Snippets Groups Projects
Commit 085dde64 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan :coffee:
Browse files

cta-dcache: propagate pending archive request ID on delete

parent 178cc08d
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,11 @@ Status CtaRpcImpl::Delete(::grpc::ServerContext* context, const ::cta::dcache::r
deleteRequest.diskFileId = request->file().fid();
deleteRequest.diskInstance = instance;
// remove pending scheduler entry, if any
deleteRequest.archiveFileID = request->archiveid();
if (!request->reqid().empty()) {
deleteRequest.address = request->reqid();
}
// Delete the file from the catalogue or from the objectstore if archive request is created
cta::utils::Timer t;
......
......@@ -70,6 +70,7 @@ message DeleteRequest {
cta.eos.Client cli = 2; // requester information
FileInfo file = 3; // files' metadata
uint64 archiveId = 4; // tape system unique file ID
string reqId = 5; // pending ARCHIVE request scheduler ID
}
/*
......
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