no error returned if an update $rename operation fails

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      renaming a->b if a DNE is not an error i guess. but the following is as it isn't allowed, yet no error set.
      > t.find()
      { "_id" : ObjectId("4df4da0dd5184551b584cf37"), "a" :

      { "c" : 3 }

      }
      > t.update({},{$rename:{"a.b":"top"}}); db.getLastErrorObj()
      {
      "updatedExisting" : true,
      "n" : 1,
      "connectionId" : 2,
      "err" : null,
      "ok" : 1
      }
      > t.find()
      { "_id" : ObjectId("4df4da0dd5184551b584cf37"), "a" :

      { "c" : 3 }

      }

              Assignee:
              Tony Hannan (Inactive)
              Reporter:
              Dwight Merriman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: