[SERVER-33495] Command::explain must take OpMsgRequest, not dbname,cmdObj pair. Created: 26/Feb/18  Updated: 29/Oct/23  Resolved: 06/Mar/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-33065 create CommandReplyBuilder and Comman... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-03-12
Participants:

 Description   

Command::explain must take OpMsgRequest, not dbname,cmdObj pair.

Explain synthesizes a new OpMsgRequest, then passes that to parse(),
which then calls Command::explain which has to re-synthesize an OpMsgRequest.
This is wasteful and produces a $db field duplication, as each synthesis injects a $db field into the request body.


Generated at Thu Feb 08 04:33:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.