[GODRIVER-419] Set the Kind when returning a topology.SelectedServer Created: 18/May/18  Updated: 23/May/18  Resolved: 23/May/18

Status: Closed
Project: Go Driver
Component/s: Server Selection
Affects Version/s: 0.0.5
Fix Version/s: 0.0.6

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes GODRIVER-403 command.Encode doesn't set slaveOk flag Closed

 Description   

When returning a *topology.SelectedServer from the server selection process, the `Kind` property is not set. This causes the slaveOk bit to not be set when doing reads against a directly connected secondary.



 Comments   
Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'skriptble', 'name': 'Kris Brandow', 'email': 'kris@mongodb.com'}

Message: Enable reading from secondaries

GODRIVER-403
GODRIVER-419

Change-Id: Ib4edb546db7491300dccdf2a435420c323a4b09b
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/3e7fde5d9e1defd2ba03a27aa8b6cd257660253b

Comment by Kristofer Brandow (Inactive) [ 18/May/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/411752.

Generated at Thu Feb 08 08:34:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.