Commit e735bc4
committed
unit: don't bother determining unit install state for transient or perpetual units
I noticed that we keep querying the preset database for transient units,
which makes little sense, since transient units are well, transient, and
hence not suject to enablement/disablement. Hence, let's shortcut things
and simply not check the preset database for them.
While we are at it, shortcut unit file state checks for transient units,
too. We know they are transient already, we can return that directly,
no need to go to disk.
Finally, treat perpetual units like transient units for the the preset
case: also bypass the preset database. (But keep checking for the unit
file state for them, since it *is* relevant to know whether they were
generated or not.)1 parent c5855d9 commit e735bc4
1 file changed
+30
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4149 | 4149 | | |
4150 | 4150 | | |
4151 | 4151 | | |
4152 | | - | |
4153 | | - | |
4154 | | - | |
4155 | | - | |
4156 | | - | |
4157 | | - | |
4158 | | - | |
4159 | | - | |
4160 | | - | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
4161 | 4167 | | |
4162 | 4168 | | |
4163 | 4169 | | |
| |||
4167 | 4173 | | |
4168 | 4174 | | |
4169 | 4175 | | |
4170 | | - | |
4171 | | - | |
| 4176 | + | |
| 4177 | + | |
4172 | 4178 | | |
4173 | | - | |
4174 | | - | |
4175 | | - | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
4176 | 4183 | | |
4177 | | - | |
4178 | | - | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
4179 | 4190 | | |
4180 | | - | |
| 4191 | + | |
4181 | 4192 | | |
4182 | | - | |
| 4193 | + | |
4183 | 4194 | | |
4184 | | - | |
4185 | | - | |
4186 | | - | |
4187 | | - | |
| 4195 | + | |
4188 | 4196 | | |
4189 | 4197 | | |
4190 | 4198 | | |
| |||
0 commit comments