Skip to content

Commit e846627

Browse files
committed
Merge pull request #13 from stevosaurus/master
Updated ServiceStack.Authentication.MongoDB to use version 1.6.1 of mongocsharpdriver
2 parents 022f3ca + 4db9c4a commit e846627

13 files changed

Lines changed: 29632 additions & 25450 deletions

File tree

src/ServiceStack.Authentication.MongoDB/ServiceStack.Authentication.MongoDB.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
3434
<ItemGroup>
35-
<Reference Include="MongoDB.Bson, Version=1.4.2.4500, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
36-
<HintPath>..\packages\mongocsharpdriver.1.4.2\lib\net35\MongoDB.Bson.dll</HintPath>
35+
<Reference Include="MongoDB.Bson">
36+
<HintPath>..\packages\mongocsharpdriver.1.6.1\lib\net35\MongoDB.Bson.dll</HintPath>
3737
</Reference>
38-
<Reference Include="MongoDB.Driver, Version=1.4.2.4500, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
39-
<HintPath>..\packages\mongocsharpdriver.1.4.2\lib\net35\MongoDB.Driver.dll</HintPath>
38+
<Reference Include="MongoDB.Driver">
39+
<HintPath>..\packages\mongocsharpdriver.1.6.1\lib\net35\MongoDB.Driver.dll</HintPath>
4040
</Reference>
4141
<Reference Include="ServiceStack.Common">
4242
<HintPath>..\..\lib\ServiceStack.Common.dll</HintPath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="mongocsharpdriver" version="1.4.2" />
3+
<package id="mongocsharpdriver" version="1.6.1" targetFramework="net35" />
44
</packages>

src/packages/mongocsharpdriver.1.4.2/Release Notes v1.4.2.txt

Lines changed: 0 additions & 66 deletions
This file was deleted.
-280 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/packages/mongocsharpdriver.1.4.2/License.rtf renamed to src/packages/mongocsharpdriver.1.6.1/License.rtf

Lines changed: 173 additions & 174 deletions
Large diffs are not rendered by default.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
C# Driver Version 1.6.1 Release Notes
2+
=====================================
3+
4+
This is a minor release containing a few bug fixes, particularly related to ReadPreference support
5+
and sending commands to secondaries.
6+
7+
An online version of these release notes is available at:
8+
9+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v1.6.1.md
10+
11+
File by file change logs are available at:
12+
13+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.6.1-Bson.txt
14+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.6.1-Driver.txt
15+
16+
The full list of JIRA issues resolved in this release is available at:
17+
18+
https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=12609
19+
20+
Changes to ReadPreference
21+
-------------------------
22+
23+
The implementation of ReadPreference has been changed to more accurately follow the ReadPreference spec:
24+
25+
http://docs.mongodb.org/manual/applications/replication/#read-preference
26+
27+
The changes are:
28+
29+
- SecondaryPreferred only uses the Primary if no secondaries are available (regardless of latency)
30+
- SecondayAcceptableLatency is now configurable
31+
- when sending queries to mongos:
32+
- ReadPreference.Primary is encoded setting the SlaveOk bit on the wire protocol to 0
33+
- ReadPreference.SecondaryPreferred (without tags) is encoded setting the SlaveOk bit on the wire protocol to 1
34+
- all other ReadPreferences are encoded using $readPreference on the wire
35+
- $query is now encoded before $readPreference as required by mongos
36+
- commands now correctly use the collection settings (they were using the database settings)
37+
38+
Sending commands to secondaries
39+
-------------------------------
40+
41+
Only a limited set of commands are now allowed to be sent to secondaries. All other commands
42+
will be sent to the primary regardless of the ReadPreference you specify. The commands
43+
that can be sent to secondaries are:
44+
45+
- aggregate
46+
- collStats
47+
- count
48+
- dbStats
49+
- distinct
50+
- geoNear
51+
- geoSearch
52+
- geoWalk
53+
- group
54+
- mapReduce (but *only* if using Inline results)
55+
56+
The corresponding helper methods in the C# driver are:
57+
58+
- MongoCollection.Aggregate
59+
- MongoCollection.GetStats
60+
- MongoCollection.Count, MongoCursor.Count and MongoCursor.Size
61+
- MongoDatabase.GetStats
62+
- MongoCollection.Distinct
63+
- MongoCollection.GeoNear and MongoCollection.GeoNearAs
64+
- MongoCollection.GeoHaystackSearch and MongoCollection.GeoHaystackSearchAs
65+
- MongoCollection.Group
66+
- MongoCollection.MapReduce (with MapReduceOutputMode.Inline)
67+
68+
There is no helper method (yet) for the geoWalk command.

0 commit comments

Comments
 (0)