Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Fix possible peer deadlock when peer completes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Drogalis committed Oct 1, 2014
1 parent b4cf752 commit 33ff91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onyx/coordinator/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@

(when (and (zero? n) (not complete?))
(release-waiting-nodes! sync (:task-node peer-state))
(complete-task sync (:task-node peer-state))
(extensions/write-node sync cooldown-node {:completed? true}))
(complete-task sync (:task-node peer-state)))

(extensions/write-node sync cooldown-node {:completed? complete?})
{:n-peers n :peer-state peer-state})
(do (extensions/write-node sync cooldown-node {:completed? true})
{:n-peers n :peer-state peer-state}))))
Expand Down

0 comments on commit 33ff91e

Please sign in to comment.