[CSHARP-1159] RunCommand should default to Primary ReadPreference Created: 08/Jan/15 Updated: 02/Apr/15 Resolved: 12/Jan/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Operations |
| Affects Version/s: | None |
| Fix Version/s: | 2.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Minor Change |
| Description |
|
Drivers in general are changing how ReadPreference is used with the generic RunCommand helper method. In particular: 1. RunCommand should default to Primary (not the ReadPreference in the database settings) This is slightly backward compatible in the sense that commands that might have been sent to a secondary before will now be sent to the primary (unless you change your code to explicitly specify a ReadPreference when calling RunCommand). |
| Comments |
| Comment by Robert Stam [ 12/Jan/15 ] |
|
We have only made this change for the 2.0 driver. In the 1.10 driver will RunCommand will remain unchanged. |
| Comment by Githook User [ 12/Jan/15 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 12/Jan/15 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 12/Jan/15 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 12/Jan/15 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |