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

Make save() work with sharding

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None

      see http://github.com/mongodb/mongo/commit/1b5e6cb00bd7f562758cc0b5aa445beb8aecc06d for broken tests.

      Right now save()ing an object with an _id field becomes an upsert with ({_id:ID}, WHOLE_OBJECT) which doesn't have the shard key in the query so mongos rejects it.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: