Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Commit

Permalink
It's not safe to use commute in move-between-refs; switch to alter.
Browse files Browse the repository at this point in the history
Thanks, Rich!
  • Loading branch information
technomancy committed Apr 17, 2009
1 parent aba0e76 commit cb9aa89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mire/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
(defn move-between-refs
"Move one instance of obj between from and to. Must be called in a transaction."
[obj from to]
(commute from disj obj)
(commute to conj obj))
(alter from disj obj)
(alter to conj obj))

0 comments on commit cb9aa89

Please sign in to comment.