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/analyze | |
parent | e67cd21d7d174cdafd12beca4cfb6e19e61f6fb5 (diff) | |
download | systemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.tar.gz |
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/analyze')
-rw-r--r-- | src/analyze/analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index a28b27a3a0..4ebce83b2c 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1568,7 +1568,7 @@ static int do_unit_files(int argc, char *argv[], void *userdata) { if (r < 0) return log_error_errno(r, "lookup_paths_init() failed: %m"); - r = unit_file_build_name_map(&lp, &unit_ids, &unit_names, NULL); + r = unit_file_build_name_map(&lp, NULL, &unit_ids, &unit_names, NULL); if (r < 0) return log_error_errno(r, "unit_file_build_name_map() failed: %m"); |