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

Getting a command's help message resets the last error stored for that connection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Any time you run a command with the field help:1 included, it returns a help message for that command. Doing so will also reset the last error stored on that connection, which means that if you do a write, then run a command's "help" form, then call getLastError, you don't get the error from the write, you get a default write concern response. Given that running "help" on any command is guaranteed to be a read-only operation, we should not reset the last error when it is run.

            Assignee:
            Unassigned Unassigned
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: