[GODRIVER-561] Database.RunCommand should use the provided read preference for server selection Created: 17/Sep/18  Updated: 28/Oct/23  Resolved: 07/Nov/18

Status: Closed
Project: Go Driver
Component/s: Server Selection
Affects Version/s: None
Fix Version/s: 0.0.18

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: beta, newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-451 Why runCommand execute in the Primary Closed

 Description   

The Database.RunCommand method does not currently use the readpref.ReadPref provided when doing server selection. Change the server selector used to be a read preference selector instead of a write selector.



 Comments   
Comment by Githook User [ 07/Nov/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@10gen.com'}

Message: GODRIVER-561 make Database.RunCommand use provided read preference for server selection

Change-Id: I2e2a2cc1783b1e0cb64d437f6a3e4e3b0124349f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/4eea9420f8dcae588d4ffbb53ad715749100cf75

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