[SERVER-18297] replace all uses of db.$cmd.findOne() with db.runCommand in shell js and jstests Created: 01/May/15  Updated: 22/Apr/16  Resolved: 21/May/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 3.1.4

Type: Task Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-17608 Implement OP_COMMAND/OP_COMMANDREPLY ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platform 4 06/05/15
Participants:

 Description   

runCommand will either use OP_COMMAND or OP_QUERY depending on how the connection is configured. As such, everything should go through runCommand rather than calling find directly.



 Comments   
Comment by Adam Midvidy [ 21/May/15 ]

I erroneously put the wrong ticket number in the commit message. Here is the commit:

https://github.com/mongodb/mongo/commit/87a7b96365801d1ee4a55b65d5177f202e7fc903

EDIT: the commit message was deleted from SERVER-18557.

Author:{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}
Message: SERVER-18297 remove usage of $cmd.findOne from shell and jstests
Branch: master
https://github.com/mongodb/mongo/commit/87a7b96365801d1ee4a55b65d5177f202e7fc90

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