Browse files

It's not safe to use commute in move-between-refs; switch to alter.

Thanks, Rich!
  • Loading branch information...
1 parent aba0e76 commit cb9aa891e072c278234f6f5fbbf97530d682a56f @technomancy committed Apr 17, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mire/util.clj
@@ -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.