From a0b683e23bf726fceeab77f85750aaf2f4f9c991 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Tue, 15 May 2012 10:11:50 +0400 Subject: [PATCH] Change log update, references #25 --- ChangeLog.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 64e95d4..4769df8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,28 @@ ## Changes between 1.0.0-beta6 and 1.0.0-beta7 +### Replica sets support + +Monger can now connect to replica sets using one or more seeds when +calling `monger.core/connect` with a collection of server addresses +instead of just a single one: + +``` clojure +(ns my.service + (:use monger.core)) + +;; Connect to a single MongoDB instance +(connect (server-address "127.0.0.1" 27017) (mongo-options)) + +;; Connect to a replica set +(connect [(server-address "127.0.0.1" 27017) (server-address "127.0.0.1" 27018)] + (mongo-options)) +``` + +`monger.core/connect!` works exactly the same way. + +Contributed by [Baishampayan Ghose](https://github.com/ghoseb). + + ### ring.session.store implementation Monger now features a [Ring session store](https://github.com/mmcgrana/ring/blob/master/ring-core/src/ring/middleware/session/store.clj) implementation. To use it, require `monger.ring.session-store` and use