Skip to content

Commit

Permalink
Update hdfs_jobs.jl
Browse files Browse the repository at this point in the history
Update delete! usage in response to 
JuliaLang/julia#3439
  • Loading branch information
kmsquire committed Aug 14, 2013
1 parent 58ffd49 commit 7eb8f9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hdfs_jobs.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

##
# Assign Job Ids. A one up number
global __next_job_id = int64(0)::JobId
Expand Down Expand Up @@ -71,7 +70,9 @@ end

function _worker_task(t::WorkerTaskUnloadJob)
d = ((myid() == 1) ? _def_wrkr_job_store : _job_store)
j = delete!(d, t.jid)
# After v0.2: j = pop!(d, t.jid)
j = d[t.jid]
delete!(d, t.jid)
isa(j.info, HdfsJobRunInfo) && isa(j.info.rdr, MapStreamInputReader) && close(j.info.rdr)
t.jid
end
Expand Down

0 comments on commit 7eb8f9f

Please sign in to comment.