[SERVER-918] upsert doesn't work if shard key isn't in value Created: 03/Dec/09  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: Eliot Horowitz (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

db.user_agent.update({
date: "2009-11-10",
user_agent: "Mozilla/5.0 (compatible; Googlebot/2.1)",
},
{ '$inc':

{count: 1}

,
'$set': {ua: {foo: "bar"}},
'$set':

{lv: 1}

,
},

{'upsert': 1}

)



 Comments   
Comment by auto [ 26/Apr/10 ]

Author:

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

Message: Test for SERVER-918
http://github.com/mongodb/mongo/commit/624804617e25922224dcbe87e4575124776773b1

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