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

db.getLastError() always returns null when using autocomplete

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      db.test.insert({_id:1})
      db.test.insert({_id:1})
      db.getLastError()

      Show
      db.test.insert({_id:1}) db.test.insert({_id:1}) db.getLastError()

      I use Mongodb 2.4.5 for windows(32bit). The db.getLastError() always returns null even if an error occurs, but only when using auto-complete for the "getLastError" call.

        1. m1.PNG
          m1.PNG
          14 kB
        2. m2.PNG
          m2.PNG
          27 kB
        3. mylog.txt
          3 kB

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            andrewguo Andrew Guo
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: