Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
f17d7661
Commit
f17d7661
authored
Sep 21, 2020
by
Cedric Caffy
Browse files
Corrected a racy exception handling in the GarbageCollector::acquireTargets() method
parent
e46f3036
Changes
1
Hide whitespace changes
Inline
Side-by-side
objectstore/GarbageCollector.cpp
View file @
f17d7661
...
...
@@ -92,6 +92,10 @@ void GarbageCollector::acquireTargets(log::LogContext & lc) {
Agent
ag
(
c
,
m_objectStore
);
try
{
ag
.
fetchNoLock
();
}
catch
(
const
Backend
::
NoSuchObject
&
){
//Maybe the agent does has not been fully written in the objectstore backend storage. It will be in the future
//so continue
continue
;
}
catch
(...)
{
// The agent could simply be gone... (if not, let the complaint go through)
if
(
m_objectStore
.
exists
(
c
))
throw
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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