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

An error in the example for $currentOp

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    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" }
         }
      ] )
      

      Attachments

        Activity

          People

            reginald.chounoune@mongodb.com Reginald Chounoune
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 42 weeks, 1 day ago