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

mongos gle no longer returns updatedExisting in 2.5.4 nightly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.5.4
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Although we're moving to write commands there are likely applications in the wild relying on this.

      MongoDB 2.4.9:

      mongos> db.test.insert({i: 1})
      mongos> db.test.update({i: 1}, {$set: {i: 1}})
      mongos> db.runCommand('getLastError')
      {
      	"singleShard" : "localhost:30000",
      	"updatedExisting" : true,
      	"n" : 1,
      	"connectionId" : 2,
      	"err" : null,
      	"ok" : 1
      }

      MongoDB 2.5.4 nightly:

      mongos> db.test.insert({i: 1})
      ... 
      mongos> db.test.update({i: 1}, {$set: {i: 1}})
      ... 
      "nUpdated" : 1,
      ...
      mongos> db.runCommand('getLastError')
      {
      	"n" : 0,
      	"shards" : [ ],
      	"shardRawGLE" : {
      		
      	},
      	"err" : null,
      	"ok" : 1
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              greg_10gen Greg Studer
              Reporter:
              behackett Bernie Hackett
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: