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

Errors could be better on upsert

    • Type: Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.3
    • Component/s: Shell
    • None
    • Environment:
      OS X

      > db.x.update(

      {'_id': 1}

      ,

      {'a':1}

      , upsert=true)
      fails silently

      > db.x.update(

      {'_id': 1}

      ,

      {'_id': 1, 'a':1}

      , upsert=true)
      works as expected

      I also had something along these lines that caused an assert failure, but I can't repro it now.

            Assignee:
            Unassigned Unassigned
            Reporter:
            krave Kushal Dave
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: