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

db not defined error messages appear even with --nodb

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • JavaScript
    • None
    • ALL

    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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: