Make save() work with sharding

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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 Stearn
            Reporter:
            Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: