From 4b43a81d6082b7c6fe70234a5df912b3218bee05 Mon Sep 17 00:00:00 2001 From: SomeoneSerge Date: Thu, 27 Jun 2024 17:06:10 +0000 Subject: job: "transitive" -> "!scheduled" --- src/queue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/queue.c') diff --git a/src/queue.c b/src/queue.c index 09eebb6..3a7ca52 100644 --- a/src/queue.c +++ b/src/queue.c @@ -41,7 +41,7 @@ static int queue_dag_isolate(struct job *job, struct job *keep_parent, job->parents_filled = 0; } - if (!job->transitive) + if (job->scheduled) CIRCLEQ_REMOVE(jobs, job, clist); ret = htab_delete(htab, job->drv_path); @@ -169,8 +169,8 @@ static int queue_push(struct queue *queue, struct job *job) } /* no duplicate entries in queue */ - if (job->transitive) { - job->transitive = false; + if (!job->scheduled) { + job->scheduled = true; CIRCLEQ_INSERT_TAIL(&queue->jobs, job, clist); } pthread_mutex_unlock(&queue->mutex); -- cgit v1.2.3