[Update] : the result "updatedExisting" is not correct

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.12.1
    • Component/s: Write Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am using MongoDB 2.6.1 and mongo java driver 2.12.1.

      When I use function “db.update(arg..)” to update a nonexistent document, the result is “

      { "serverUsed" : "localhost:27017" , "ok" : 1 , "n" : 0 , "updatedExisting" : true}

      ”, the “updatedExisting” is true , this is incorrect.

      When I use mongo java driver 2.11.3, the result is correct.

        1. UpdateTest.java
          1 kB
          Dong [X]

            Assignee:
            Ross Lawley
            Reporter:
            Dong [X]
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: