mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
transaction: avoid garbage collecting the anchor job
Make sure the anchor job is never considered garbage, even if it has no links leading to it (this will be allowed in the next patch).
This commit is contained in:
parent
0d9989aa68
commit
38809d9dfe
@ -454,7 +454,7 @@ static void transaction_collect_garbage(Transaction *tr) {
|
||||
again = false;
|
||||
|
||||
HASHMAP_FOREACH(j, tr->jobs, i) {
|
||||
if (j->object_list) {
|
||||
if (tr->anchor_job == j || j->object_list) {
|
||||
/* log_debug("Keeping job %s/%s because of %s/%s", */
|
||||
/* j->unit->id, job_type_to_string(j->type), */
|
||||
/* j->object_list->subject ? j->object_list->subject->unit->id : "root", */
|
||||
|
Loading…
Reference in New Issue
Block a user