core: rework how we deserialize jobs
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Dec 2018 18:40:37 +0000 (19:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Dec 2018 10:15:07 +0000 (11:15 +0100)
commitb17c9620c87a1d8117da72b30a2e096df02a2bb5
tree2c39d456df91207995fdd358da7eccaa6509f916
parent48235ad6b7ef168e029d48701a08b62b616bcdd2
core: rework how we deserialize jobs

Let's add a helper call unit_deserialize_job() for this purpose, and
let's move registration in the global jobs hash table into
job_install_deserialized() so that it it is done after all superficial
checks are done, and before transitioning into installed states, so that
rollback code is not necessary anymore.
src/core/job.c
src/core/job.h
src/core/unit.c