Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Fixed
-
None
-
Fully Compatible
-
ALL
Description
Running db.serverStatus({oplog:1}) helper returns a TypeError when the command fails:
$ mongo some-config-svr-host:40031
|
MongoDB shell version: 2.8.0-rc4
|
connecting to: some-config-svr-host:40031/test
|
configsvr> db.serverStatus({oplog:1})
|
2015-01-04T13:51:21.188-0500 I QUERY TypeError: Cannot read property 'commands' of undefined
|
at DB.serverStatus (src/mongo/shell/db.js:904:57)
|
at (shell):1:4 at src/mongo/shell/db.js:904
|
configsvr>
|
Attachments
Issue Links
- is related to
-
SERVER-16714 serverStatus command with oplog argument to config server returns error
-
- Closed
-
- related to
-
SERVER-15870 suppress uncalled commands from db.serverStatus() in the shell
-
- Closed
-
- links to