Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40270

Distinct command no longer supports $comment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL

      Description

      SERVER-39256 broke $comment support for the distinct command:

      $ mongo
      MongoDB shell version v4.0.1
      connecting to: mongodb://127.0.0.1:27017
      MongoDB server version: 4.1.9-87-g40f54965f9
      WARNING: shell and server versions do not match
      > db.runCommand({distinct:"test", key: "x", $comment: "dsf"})
      {
      	"ok" : 0,
      	"errmsg" : "BSON field 'distinct.$comment' is an unknown field.",
      	"code" : 40415,
      	"codeName" : "Location40415"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: