Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34634

db.currentOp( { "$ownOps": true } ) should work on mongos too

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 3.2.12
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None

      Description

      According to the documentation users can run

      db.currentOp( { "$ownOps": true } )

      on mongod to view their own operations even without the inprog privilege action.

      In order to be consistent, this command should also work for sharded systems and not only for single mongod's. However, it fails when executed on mongos:

      mongos> db.currentOp( { "$ownOps": true } )
      {
      	"ok" : 0,
      	"errmsg" : "not authorized on admin to execute command { currentOp: 1.0, $ownOps: true }",
      	"code" : 13
      }
      mongos>

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: