Skip to content
Snippets Groups Projects
Commit f0ab4fa7 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

Corrected a racy exception handling in the GarbageCollector::acquireTargets() method

parent efab9633
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment