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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.12
    • Component/s: None
    • Labels:
      None
    • Query Execution

      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>

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            kay.agahd@idealo.de Kay Agahd
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: