core/manager: kill unused default_unit_job_id field

While at it, make sure the "Queued ... job for default target"
message is always logged, i.e. also when we fall back to
start job instead of isolate.
This commit is contained in:
Mike Yuan
2025-11-05 10:39:30 +01:00
parent 5468cd269f
commit 185af6ebd3
2 changed files with 3 additions and 6 deletions
+3 -5
View File
@@ -2639,12 +2639,10 @@ static int do_queue_default_job(
return log_struct_errno(LOG_EMERG, r,
LOG_MESSAGE("Failed to isolate default target: %s", bus_error_message(&error, r)),
LOG_MESSAGE_ID(SD_MESSAGE_CORE_ISOLATE_TARGET_FAILED_STR));
} else
log_info("Queued %s job for default target %s.",
job_type_to_string(job->type),
unit_status_string(job->unit, NULL));
}
m->default_unit_job_id = job->id;
log_info("Queued %s job for default target %s.",
job_type_to_string(job->type), unit_status_string(job->unit, NULL));
return 0;
}
-1
View File
@@ -324,7 +324,6 @@ typedef struct Manager {
bool send_reloading_done;
uint32_t current_job_id;
uint32_t default_unit_job_id;
/* Data specific to the Automount subsystem */
int dev_autofs_fd;