Commit f17d7661 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

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

parent e46f3036
......@@ -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;
......
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