[DOCS-1957] sleep command usage incorrect Created: 13/Sep/13  Updated: 11/Jan/17  Resolved: 17/Sep/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 22 weeks, 1 day ago

 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}).



 Comments   
Comment by auto [ 17/Sep/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1957 fixing sleep command examples
Branch: master
https://github.com/mongodb/docs/commit/ef381943f27137a4f555e00edd6a453eaa956cae

Generated at Thu Feb 08 07:42:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.