if (strv_push_pair(&array, k->unit->id, (char*) job_type_to_string(k->type)) < 0)
log_oom();
- if (!delete && hashmap_get(tr->jobs, k->unit) && !job_matters_to_anchor(k))
+ if (!delete && hashmap_contains(tr->jobs, k->unit) && !job_matters_to_anchor(k))
/* Ok, we can drop this one, so let's do so. */
delete = k;
if (j->unit->ignore_on_isolate)
continue;
- if (hashmap_get(tr->jobs, j->unit))
+ if (hashmap_contains(tr->jobs, j->unit))
continue;
/* Not invalidating recursively. Avoids triggering
return false;
/* Is there already something listed for this? */
- if (hashmap_get(tr->jobs, u))
+ if (hashmap_contains(tr->jobs, u))
return false;
return true;
continue;
/* Is there already something listed for this? */
- if (hashmap_get(tr->jobs, trigger))
+ if (hashmap_contains(tr->jobs, trigger))
continue;
r = transaction_add_job_and_dependencies(tr, JOB_STOP, trigger, tr->anchor_job, true, false, false, false, NULL);