Skip to content

Commit

Permalink
Fix accidental serialization on job_toolchains lock introduced in cro…
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanchester committed Sep 9, 2019
1 parent 8478635 commit 98c6a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/sccache-dist/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@ impl ServerIncoming for Server {
requester
.do_update_job_state(job_id, JobState::Started)
.chain_err(|| "Updating job state failed")?;
let res = match self.job_toolchains.lock().unwrap().remove(&job_id) {
let tc = self.job_toolchains.lock().unwrap().remove(&job_id);
let res = match tc {
None => Ok(RunJobResult::JobNotFound),
Some(tc) => {
match self.builder.run_build(tc, command, outputs, inputs_rdr, &self.cache) {
Expand Down

0 comments on commit 98c6a3f

Please sign in to comment.