[SERVER-20198]  Ignore slaveOk when checking cursor._options Created: 29/Aug/15  Updated: 19/Sep/15  Resolved: 02/Sep/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.1.7
Fix Version/s: 3.1.8

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

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: RPL 9 (09/18/15)
Participants:

 Description   

Running crud_api.js against a replica set passthrough fails because asserts against cursor options are using a value that doesn't include slaveOK.

Example:

var cursor = coll.find({}).sort({a:1}).tailable();
assert.eq(34, cursor._options);



 Comments   
Comment by Githook User [ 31/Aug/15 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-20198: Ignore slaveOk when checking cursor._options
Branch: master
https://github.com/mongodb/mongo/commit/75f6f242266e0f798ae1496e54ce55bbd0d6d1d3

Comment by Eric Milkie [ 31/Aug/15 ]

Yes, we should AND off the bits we're not concerned with, in that assert check.

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