Commit 8a580f3f authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

cta-dcache: propagate pending archive request ID on delete

parent 6c5b0f0e
......@@ -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
}
/*
......
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