getLastError response for failed index build contains extra copy of "err" field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Regression since 2.5.4.

      Repro with (mongo version 2.4, mongod version 57a4f169 (2.5.5-pre)):

      db.foo.ensureIndex({a:"blah"});
      printjson(db.getLastErrorObj());
      

      Output:

      {
      	"err" : "Unknown index plugin 'blah' in index { a: \"blah\" }",
      	"code" : 67,
      	"n" : 0,
      	"connectionId" : 2,
      	"syncMillis" : 0,
      	"writtenTo" : null,
      	"err" : "Unknown index plugin 'blah' in index { a: \"blah\" }",
      	"ok" : 1
      }
      

            Assignee:
            Randolph Tan
            Reporter:
            J Rassi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: