getLastError returns n:0 after insert, always

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.user.insert({_id:"test2"})
      > db.getLastErrorObj()         
      {
      	"n" : 0,
      	"lastOp" : NumberLong("5680229325681459201"),
      	"connectionId" : 2,
      	"err" : null,
      	"ok" : 1
      }
      

              Assignee:
              Unassigned
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: