[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: |
|
||||||||
| 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.
|