[JAVA-705] Query commands like aggregate and mapReduce don't pick up the read preference set on the collection Created: 30/Nov/12  Updated: 19/Mar/13  Resolved: 10/Mar/13

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.11.0

Type: Bug Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-766 DBCollection.setReadReference() has n... Closed
Related

 Description   

The various query-like commands on DBCollection do not honor the read preference set on the DBCollection, instead defaulting to whatever is set on the DB (on which the command() method resides



 Comments   
Comment by auto [ 10/Mar/13 ]

Author:

{u'date': u'2013-03-10T22:00:46Z', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-705: Use collection's default read preference and options for command helpers like mapReduce, aggregate, and collStats.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d63615edf9c8633d8c27a7922ec1f65bca2d55a4

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