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

sleep command usage incorrect

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • manual
    • None

    Description

      The docs for the sleep command claim "The sleep command takes a document with the following fields". The sleep command does not accept a document; similar to getLastError, the value of the "sleep" field is ignored, and it accepts options as top-level fields in the command document.

      Example: db.adminCommand({sleep: 1, w: true}).

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 22 weeks, 1 day ago