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

Better error message when using admin command on non-admin db

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Admin

    Description

      rs:PRIMARY> db.$cmd.sys.unlock.findOne()

      { "err" : "unauthorized" }

      Should say something like "This is an command that must be run against the admin db".

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: