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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.7.3
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Platforms 2018-03-12
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: