Fixes a bug with the 5-arity ensure-index function. The argument

named `name` shadowed clojure.core/name, so trying to call `name`
as a function on line 426 throws an exception. Fixes the bug by
renaming the argument to `index-name`.
This commit is contained in:
Joshua Karstendick 2015-06-23 17:21:12 -04:00
parent d337cd1546
commit 9c0f385ab2

View file

@ -422,10 +422,10 @@
(.createIndex (.getCollection db (name coll))
(as-field-selector keys)
(to-db-object options)))
([^DB db ^String coll ^Map keys ^String name unique?]
([^DB db ^String coll ^Map keys ^String index-name unique?]
(.createIndex (.getCollection db (name coll))
(as-field-selector keys)
name
index-name
unique?)))