[SERVER-1894] Errors could be better on upsert Created: 05/Oct/10  Updated: 03/Sep/11  Resolved: 03/Sep/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.6.3
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kushal Dave Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X


Participants:

 Description   

> db.x.update(

{'_id': 1}

,

{'a':1}

, upsert=true)
fails silently

> db.x.update(

{'_id': 1}

,

{'_id': 1, 'a':1}

, upsert=true)
works as expected

I also had something along these lines that caused an assert failure, but I can't repro it now.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 03/Sep/11 ]

both work for me

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