diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-31 20:44:00 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-01 17:27:28 +0200 |
commit | 0500968241c895013333b477aa1075e1f3960a0d (patch) | |
tree | 05c5d5d943ece8342deb6d34e266e313fc44a1e3 | |
parent | 8ae22f0d64006dfe8dd4738a48198019ec9bd2c5 (diff) | |
download | systemd-0500968241c895013333b477aa1075e1f3960a0d.tar.gz |
core: always try to reload not-found unit
This check was added in d904afc730268d50502f764dfd55b8cf4906c46f. It would only
apply in the case where the cache hasn't been loaded yet. I think we pretty
much always have the cache loaded when we reach this point, but even if we
didn't, it seems better to try to reload the unit. So let's drop this check.
(cherry picked from commit 02103e57162946b5ac620c552123ff5e305a2791)
-rw-r--r-- | src/core/manager.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 1a70634cb9..43e7b10f2c 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1946,9 +1946,6 @@ bool manager_unit_cache_should_retry_load(Unit *u) { if (u->load_state != UNIT_NOT_FOUND) return false; - if (u->manager->unit_cache_mtime == 0) - return false; - /* The cache has been updated since the last time we tried to load the unit. There might be new * fragment paths to read. */ if (u->manager->unit_cache_mtime != u->fragment_not_found_time) |