bool JobServerJobLogConsumer::DestroyClassAd(const char *_key) { // ignore the marker if (strcmp(_key,"0.0") == 0) { return true; } dprintf ( D_FULLDEBUG, "JobServerJobLogConsumer::DestroyClassAd - key '%s'\n", _key); JobCollectionType::iterator g_element = g_jobs.find(_key); if (g_jobs.end() == g_element) { dprintf(D_ALWAYS,"no such job found for key '%s'\n",_key); return false; } Job* job = (*g_element).second; // Destroy will figure out the submission decrement if (job->Destroy()) { delete job; job = NULL; g_jobs.erase(g_element); } return true; }