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

db not defined error messages appear even with --nodb

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: JavaScript
    • Labels:
      None
    • Operating System:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: