Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4220

Wrong maxTimeMS value on example

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • v1.3.13
    • mongodb-2.6
    • manual
    • None

    Description

      At "5.2. Administration Tutorials"

      Sub-section: "Terminate Running Operations" - "Available Procedures"

      You can add the maxTimeMS field to the command document to set a time limit of 30 milliseconds for the operation:
      db.runCommand(

      { distinct: "collection", key: "city", maxTimeMS: 45 }

      )

      Command uses value of 45 and not 30

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            jjussi Jussi Jaaskelainen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 17 weeks, 1 day ago