diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-10 18:01:13 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-30 14:01:46 +0200 |
commit | 91e0ee5f16321656ed6f827742ecbeb2b36027f2 (patch) | |
tree | 41f3b5b389f8e6353b5e8bfb34272add25b10385 /src/systemctl/systemctl.c | |
parent | analyze: add "unit-files" to dump the unit fragment map (diff) | |
download | systemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.tar.xz systemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.zip |
pid1: drop unit caches only based on mtime
v2:
- do not watch mtime of transient and generated dirs
We'd reload the map after every transient unit we created, which we don't
need to do, since we create those units ourselves and know their fragment
path.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 31d364cefe..1140deb0d1 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2593,7 +2593,7 @@ static int unit_find_paths( _cleanup_set_free_free_ Set *names = NULL; if (!cached_name_map) { - r = unit_file_build_name_map(lp, &cached_id_map, &cached_name_map, NULL); + r = unit_file_build_name_map(lp, NULL, &cached_id_map, &cached_name_map, NULL); if (r < 0) return r; } |