[SERVER-919] Make save() work with sharding Created: 07/Jan/10  Updated: 12/Jul/16  Resolved: 26/Apr/10

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 1.5.1

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

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.



 Comments   
Comment by auto [ 26/Apr/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: tests for SERVER-919
revert of 1b5e6cb00bd7f562758cc0b5aa445beb8aecc06d
http://github.com/mongodb/mongo/commit/a71e8dc16db3ef3ccda847a8b72c6310868bb9fa

Generated at Thu Feb 08 02:55:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.