diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-04-19 23:20:34 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-04-20 17:12:27 +0200 |
commit | 02a3bcc6b4372ca50c0a62b193f9a75b988ffa69 (patch) | |
tree | e570c8bed3b05d55efc6a0a4d1ac5fe9f876d61d /src/core/manager.h | |
parent | 153bda8f03c670caf137f745350c0215b9be2147 (diff) |
job: allow job_free() only on already unlinked jobs
job_free() is IMO too helpful when it unlinks the job from the transaction.
The callers should ensure the job is already unlinked before freeing.
The added assertions check if anyone gets it wrong.
Diffstat (limited to 'src/core/manager.h')
-rw-r--r-- | src/core/manager.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/manager.h b/src/core/manager.h index 39e16aee98..0e9c0d7b4e 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -257,8 +257,6 @@ int manager_add_job_by_name(Manager *m, JobType type, const char *name, JobMode void manager_dump_units(Manager *s, FILE *f, const char *prefix); void manager_dump_jobs(Manager *s, FILE *f, const char *prefix); -void manager_transaction_unlink_job(Manager *m, Job *j, bool delete_dependencies); - void manager_clear_jobs(Manager *m); unsigned manager_dispatch_load_queue(Manager *m); |