[DOCS-11645] An error in the example for $currentOp Created: 24/Apr/18  Updated: 29/Oct/23  Resolved: 25/Apr/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dmitry Ryabtsev Assignee: Reginald Chounoune
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 5 years, 42 weeks, 1 day ago

 Description   

The example here has an extra "}" bracket. It is:

use admin
db.aggregate( [ {
   $currentOp : { allUsers: true, idleConnections: true } }, {
   $match : { shard: "shard01" }
   }
] } ) // <== here

But should be:

use admin
db.aggregate( [ {
   $currentOp : { allUsers: true, idleConnections: true } }, {
   $match : { shard: "shard01" }
   }
] )



 Comments   
Comment by Githook User [ 25/Apr/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'kay'}

Message: DOCS-11645: typo on currentOp
Branch: v3.6
https://github.com/mongodb/docs/commit/93451e0f8f325eb4a7191f544010c79e5b1e4362

Comment by Githook User [ 25/Apr/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'kay'}

Message: DOCS-11645: typo on currentOp
Branch: master
https://github.com/mongodb/docs/commit/76b01aecb51239d53f4d536f52cb7e98bf437189

Generated at Thu Feb 08 08:03:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.