Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta-dcache-frontend
Commits
f9591822
Commit
f9591822
authored
Oct 29, 2021
by
Tigran Mkrtchyan
☕
Browse files
cta-dcache: fail delete request if getArchiveFileById fails
parent
e9de7e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
gRPC/FrontendGRpcSvc.cpp
View file @
f9591822
...
...
@@ -99,7 +99,8 @@ Status CtaRpcImpl::Delete(::grpc::ServerContext* context, const ::cta::dcache::r
try
{
deleteRequest
.
archiveFile
=
m_catalogue
->
getArchiveFileById
(
deleteRequest
.
archiveFileID
);
}
catch
(
cta
::
exception
::
Exception
&
ex
){
// TODO add logging
m_log
->
log
(
cta
::
log
::
CRIT
,
ex
.
getMessageValue
());
return
::
grpc
::
Status
(
::
grpc
::
StatusCode
::
INTERNAL
,
ex
.
getMessageValue
());
}
m_scheduler
->
deleteArchive
(
instance
,
deleteRequest
,
*
m_log
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment