]> git.ipfire.org Git - thirdparty/systemd.git/commit
job: Don't mark as redundant if deps are relevant
authorKevin Kuehler <keur@xcf.berkeley.edu>
Tue, 19 Nov 2019 21:43:58 +0000 (13:43 -0800)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Jan 2020 14:58:10 +0000 (15:58 +0100)
commit097537f07a2fab3cb73aef7bc59f2a66aa93f533
treeaa9d5eca333ad188f917202b3aec6da6558a9ae4
parentdc5737470e8873c6e26cfa4d6c0318a69677dda6
job: Don't mark as redundant if deps are relevant

In the steps given in #13850, the resulting graph looks like:

    C (Anchor) -> B -> A

Since B is inactive, it will be flagged as redundant and removed from
the transaction, causing A to get garbage collected. The proposed fix is
to not mark nodes as redundant if doing so causes a relevant node to be
garbage collected.

Fixes #13850
src/core/job.c
src/core/job.h
src/core/transaction.c