]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/transaction.c
core: introduce MANAGER_IS_RELOADING() macro
[thirdparty/systemd.git] / src / core / transaction.c
index c894001cf94eb1b894a17eb3662fb4c01f09bdf2..dad387749c7e1ebae9854fa658c02fba9fb03a07 100644 (file)
@@ -855,7 +855,7 @@ int transaction_add_job_and_dependencies(
          * This matters when jobs are spawned as part of coldplugging itself (see e. g. path_coldplug()).
          * This way, we "recursively" coldplug units, ensuring that we do not look at state of
          * not-yet-coldplugged units. */
-        if (unit->manager->n_reloading > 0)
+        if (MANAGER_IS_RELOADING(unit->manager))
                 unit_coldplug(unit);
 
         /* log_debug("Pulling in %s/%s from %s/%s", */