From 9c0f385ab206703a9bad345b8401519bd23a4176 Mon Sep 17 00:00:00 2001 From: Joshua Karstendick Date: Tue, 23 Jun 2015 17:21:12 -0400 Subject: [PATCH] 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`. --- src/clojure/monger/collection.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clojure/monger/collection.clj b/src/clojure/monger/collection.clj index 8569576..59ff4b0 100644 --- a/src/clojure/monger/collection.clj +++ b/src/clojure/monger/collection.clj @@ -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?)))