]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/manager: also assert on Manager.units_by_invocation_id being empty after cleanup
authorMike Yuan <me@yhndnzj.com>
Sun, 6 Apr 2025 22:10:50 +0000 (00:10 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 7 Apr 2025 06:48:23 +0000 (15:48 +0900)
src/core/manager.c

index c2cf191c4d17d0828b62a75d0552fe695406e6f9..790acb015b6a4ef00070cd2291f3a15bd1fd32bd 100644 (file)
@@ -1636,6 +1636,7 @@ static void manager_clear_jobs_and_units(Manager *m) {
 
         assert(hashmap_isempty(m->jobs));
         assert(hashmap_isempty(m->units));
+        assert(hashmap_isempty(m->units_by_invocation_id));
 
         m->n_on_console = 0;
         m->n_running_jobs = 0;