add test for garbage collector
This commit is contained in:
parent
302d0040d2
commit
9ea024f6b5
|
@ -315,6 +315,8 @@ static void transaction_collect_garbage(Manager *m) {
|
||||||
if (j->object_list)
|
if (j->object_list)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
log_debug("Garbage collecting job %s", name_id(j->name));
|
||||||
|
|
||||||
transaction_delete_job(m, j);
|
transaction_delete_job(m, j);
|
||||||
again = true;
|
again = true;
|
||||||
break;
|
break;
|
||||||
|
@ -504,7 +506,7 @@ void manager_transaction_unlink_job(Manager *m, Job *j) {
|
||||||
job_dependency_free(j->object_list);
|
job_dependency_free(j->object_list);
|
||||||
|
|
||||||
if (other) {
|
if (other) {
|
||||||
log_debug("Deleting job %s dependency of job %s", name_id(other->name), name_id(j->name));
|
log_debug("Deleting job %s as dependency of job %s", name_id(other->name), name_id(j->name));
|
||||||
transaction_delete_job(m, other);
|
transaction_delete_job(m, other);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
[Meta]
|
[Meta]
|
||||||
Description=B
|
Description=B
|
||||||
|
Wants=f.service
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Meta]
|
||||||
|
Description=F
|
Loading…
Reference in New Issue