Make sure gridfs finders never go into infinite recursion
Protocol matching is hash-based, so we cannot guarantee that DBObject implementation will always be picked before java.util.Map's.
This commit is contained in:
parent
e033aa995b
commit
a6544a1617
1 changed files with 2 additions and 1 deletions
|
|
@ -132,7 +132,8 @@
|
|||
(find-one-as-map [^DBObject input]
|
||||
(converter (find-one input)))
|
||||
|
||||
java.util.Map
|
||||
;; using java.util.Map here results in (occasional) recursion
|
||||
clojure.lang.IPersistentMap
|
||||
(find [^java.util.Map input]
|
||||
(find (to-db-object input)))
|
||||
(find-one [^java.util.Map input]
|
||||
|
|
|
|||
Loading…
Reference in a new issue