[SERVER-5574] db not defined error messages appear even with --nodb Created: 11/Apr/12  Updated: 11/Jul/16  Resolved: 12/Apr/12

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.1.0
Fix Version/s: 2.1.1

Type: Bug Priority: Minor - P4
Reporter: Randolph Tan Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-5485 implement thread safety for shell uti... Closed
Operating System: ALL
Participants:

 Description   

git commit version: ab60e77554527f22626d050fe6b01ee44fb55e01

Error message error appears for every line executed if --nodb is passed to the mongo shell, which is annoying (this was message doesn't appear before):

Wed Apr 11 12:29:40 ReferenceError: db is not defined src/mongo/shell/utils.js:1192

replSetMemberStatePrompt = function() {
    var state = '';
    var stateInfo = db.getSiblingDB( 'admin' ).runCommand( { replSetGetStatus:1, forShell:1 } ); // <-- line 1192 in my build



 Comments   
Comment by auto [ 12/Apr/12 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-5574 Make spider monkey Scope implementation honor exec()'s reportError parameter.
Branch: master
https://github.com/mongodb/mongo/commit/330f8820c636e18d8166f78db74f8d66129832e0

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