[JAVA-273] many db commands (stats, list db, group, etc) should succeed if slaveOk=true and at least one server is up Created: 16/Feb/11  Updated: 17/Mar/11  Resolved: 16/Feb/11

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

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


 Description   

Many read only operations call db.command(obj) which always uses 0 as query op.
But these should use db.command(obj, getOptions()) to use options set on db.
For example, one should be able to list databases or get stats even if no master is currently up.



 Comments   
Comment by auto [ 16/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: [JAVA-273: many db commands (stats, list db, group, etc) should succeed if slaveOk=true and at least one server is up]
https://github.com/mongodb/mongo-java-driver/commit/b7a878ee0133135d33880660850a4a993754c354

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