From 5964e01b1d9d35dfd06be82ee689282d26645831 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Mon, 28 May 2012 02:22:46 +0400 Subject: [PATCH] Make :auto-connect-retry connection default to true Another very unsafe default on the MongoDB Java driver side. Monger puts safety first, fancy sky high benchmarks second. --- src/monger/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monger/core.clj b/src/monger/core.clj index aec61b9..dc4bc06 100644 --- a/src/monger/core.clj +++ b/src/monger/core.clj @@ -127,7 +127,7 @@ (defn mongo-options [& { :keys [connections-per-host threads-allowed-to-block-for-connection-multiplier max-wait-time connect-timeout socket-timeout socket-keep-alive auto-connect-retry max-auto-connect-retry-time - safe w w-timeout fsync j] }] + safe w w-timeout fsync j] :or [auto-connect-retry true] }] (let [mo (MongoOptions.)] (when connections-per-host (set! (. mo connectionsPerHost) connections-per-host))