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

db not defined error messages appear even with --nodb

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1.1
    • Affects Version/s: 2.1.0
    • Component/s: JavaScript
    • None
    • ALL

      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
      

            Assignee:
            aaron Aaron Staple
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: