Skip to content

Commit d295ae3

Browse files
chu11mergify[bot]
authored andcommitted
job-list: initialize state masks to state NEW
Problem: Bitmasks that track job states that have been reached / processed are never initialized. Therefore, the job state of "NEW" is just assumed. Solution: Initialize these bitmasks to NEW to make the state formally stored.
1 parent b49b583 commit d295ae3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/job-list/job_state.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ static struct job *job_create (struct list_ctx *ctx, flux_jobid_t id)
164164
return NULL;
165165
}
166166

167+
job->states_mask = FLUX_JOB_STATE_NEW;
168+
job->states_events_mask = FLUX_JOB_STATE_NEW;
169+
167170
return job;
168171
}
169172

0 commit comments

Comments
 (0)