From d824e622c3c34ae74be75f2752022253761d3e48 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Fri, 8 Jun 2012 22:07:16 +0400 Subject: [PATCH] Derp --- src/monger/command.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/monger/command.clj b/src/monger/command.clj index dac6e0a..17c5da8 100644 --- a/src/monger/command.clj +++ b/src/monger/command.clj @@ -45,14 +45,14 @@ "Converts an existing, non-capped collection to a capped collection using the convertToCapped command" ([^String collection ^long size] (convert-to-capped monger.core/*mongodb-database* collection size)) - ([^Db database ^String collection ^long size] + ([^DB database ^String collection ^long size] (monger.core/command database {:convertToCapped collection :size size}))) (defn empty-capped "Removes all documents from a capped collection using the emptycapped command" ([^String collection] (empty-capped monger.core/*mongodb-database* collection)) - ([^Db database ^String collection] + ([^DB database ^String collection] (monger.core/command database {:emptycapped collection}))) @@ -60,7 +60,7 @@ "Rewrites and defragments a single collection using the compact command. This also forces all indexes on the collection to be rebuilt" ([^String collection] (compact monger.core/*mongodb-database* collection)) - ([^Db database ^String collection] + ([^DB database ^String collection] (monger.core/command database {:compact collection})))