Permalink
Browse files

Merge pull request #13 from stevosaurus/master

Updated ServiceStack.Authentication.MongoDB to use version 1.6.1 of mongocsharpdriver
  • Loading branch information...
2 parents 022f3ca + 4db9c4a commit e8466277c25da7d39d84396eaf5bb4c76ef4098e @mythz mythz committed Nov 17, 2012
@@ -32,11 +32,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="MongoDB.Bson, Version=1.4.2.4500, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
- <HintPath>..\packages\mongocsharpdriver.1.4.2\lib\net35\MongoDB.Bson.dll</HintPath>
+ <Reference Include="MongoDB.Bson">
+ <HintPath>..\packages\mongocsharpdriver.1.6.1\lib\net35\MongoDB.Bson.dll</HintPath>
</Reference>
- <Reference Include="MongoDB.Driver, Version=1.4.2.4500, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
- <HintPath>..\packages\mongocsharpdriver.1.4.2\lib\net35\MongoDB.Driver.dll</HintPath>
+ <Reference Include="MongoDB.Driver">
+ <HintPath>..\packages\mongocsharpdriver.1.6.1\lib\net35\MongoDB.Driver.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Common">
<HintPath>..\..\lib\ServiceStack.Common.dll</HintPath>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="mongocsharpdriver" version="1.4.2" />
+ <package id="mongocsharpdriver" version="1.6.1" targetFramework="net35" />
</packages>
@@ -1,66 +0,0 @@
-C# Driver Version 1.4.2 Release Notes
-=====================================
-
-This minor release fixes a few issues found in the 1.4.1 release.
-
-File by file change logs are available at:
-
-https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.4.2-Bson.txt
-https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.4.2-Driver.txt
-
-These release notes describe the changes at a higher level, and omit describing
-some of the minor changes.
-
-Breaking changes
-----------------
-
-After 1.4.1 was released it was discovered that there were some minor breaking
-changes. The breaking changes were in methods that we considered to be internal,
-but that were not made private so that they leaked out into the public API.
-Those methods have now been marked obsolete and will be made private in
-a future release. The 1.4.2 release restores backward compatibility for these
-methods (GetDocumentId and SetDocumentId in BsonDocument).
-
-JIRA issues resolved
---------------------
-
-The full list of JIRA issues resolved in this release is available at:
-
-https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=11409
-
-BSON library changes
-====================
-
-GetDocumentId/SetDocumentId marked obsolete
--------------------------------------------
-
-These methods were intended to be private. They have been marked as obsolete
-and will be made private in a future release.
-
-Driver changes
-==============
-
-Query.All/In/NotIn
-------------------
-
-There was an issue with Query.All/In/NotIn that might have affected you. If you
-cast a BsonArray to IEnumerable&lt;BsonValue&gt; before calling Query.All/In/NotIn
-you would get an exception. This only happened when casting a BsonArray to
-IEnumerable&lt;BsonValue&gt;. If you passed a BsonArray to the BsonArray overload or
-passed an IEnumerable&lt;BsonValue&gt; that was not a BsonArray to the
-IEnumerable&lt;BsonValue&gt; overload no exception was thrown.
-
-RequestStart/RequestDone
-------------------------
-
-Calling RequestStart when the connection pool was oversubscribed would often
-result in a deadlock. This has been fixed in the 1.4.2 release.
-
-Ping/VerifyState
-----------------
-
-These methods are usually called from a timer to monitor the state of the
-server (or of multiple servers if connected to a replica set), but you can
-also call them yourself. These methods now use a new connection instead
-of one from the connection pool so that they are not delayed waiting for a
-connection when the connection pool is oversubscribed.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,68 @@
+C# Driver Version 1.6.1 Release Notes
+=====================================
+
+This is a minor release containing a few bug fixes, particularly related to ReadPreference support
+and sending commands to secondaries.
+
+An online version of these release notes is available at:
+
+https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v1.6.1.md
+
+File by file change logs are available at:
+
+https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.6.1-Bson.txt
+https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.6.1-Driver.txt
+
+The full list of JIRA issues resolved in this release is available at:
+
+https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=12609
+
+Changes to ReadPreference
+-------------------------
+
+The implementation of ReadPreference has been changed to more accurately follow the ReadPreference spec:
+
+http://docs.mongodb.org/manual/applications/replication/#read-preference
+
+The changes are:
+
+- SecondaryPreferred only uses the Primary if no secondaries are available (regardless of latency)
+- SecondayAcceptableLatency is now configurable
+- when sending queries to mongos:
+ - ReadPreference.Primary is encoded setting the SlaveOk bit on the wire protocol to 0
+ - ReadPreference.SecondaryPreferred (without tags) is encoded setting the SlaveOk bit on the wire protocol to 1
+ - all other ReadPreferences are encoded using $readPreference on the wire
+ - $query is now encoded before $readPreference as required by mongos
+- commands now correctly use the collection settings (they were using the database settings)
+
+Sending commands to secondaries
+-------------------------------
+
+Only a limited set of commands are now allowed to be sent to secondaries. All other commands
+will be sent to the primary regardless of the ReadPreference you specify. The commands
+that can be sent to secondaries are:
+
+- aggregate
+- collStats
+- count
+- dbStats
+- distinct
+- geoNear
+- geoSearch
+- geoWalk
+- group
+- mapReduce (but *only* if using Inline results)
+
+The corresponding helper methods in the C# driver are:
+
+- MongoCollection.Aggregate
+- MongoCollection.GetStats
+- MongoCollection.Count, MongoCursor.Count and MongoCursor.Size
+- MongoDatabase.GetStats
+- MongoCollection.Distinct
+- MongoCollection.GeoNear and MongoCollection.GeoNearAs
+- MongoCollection.GeoHaystackSearch and MongoCollection.GeoHaystackSearchAs
+- MongoCollection.Group
+- MongoCollection.MapReduce (with MapReduceOutputMode.Inline)
+
+There is no helper method (yet) for the geoWalk command.
Oops, something went wrong.

0 comments on commit e846627

Please sign in to comment.