[SERVER-3223] $bit won't do an upsert Created: 08/Jun/11  Updated: 12/Jul/16  Resolved: 02/Dec/13

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Bug Priority: Minor - P4
Reporter: Dwight Merriman Assignee: David Storch
Resolution: Done Votes: 7
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-3046 $bit update modifier doesn't work whe... Closed
Operating System: ALL
Participants:

 Description   

> db.yy.update(

{z:3}

,{$bit:{y:

{or:new NumberLong(8)}

}},true)
> db.yy.find()
> // nothing

> db.yy.update(

{z:3}

,{$inc:{y:NumberLong(33)}},true)
> db.yy.find()

{ "_id" : ObjectId("4defb2c16fb770000bccd32a"), "y" : NumberLong(33), "z" : 3 }

 Comments   
Comment by Githook User [ 02/Dec/13 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-3223 js test for upsert with $bit

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/ae5d69aff2bc5bed43e5a7536f295e655ab3bcf5

Comment by Scott Hernandez (Inactive) [ 20/Nov/13 ]

David, can you check to see if SERVER-3046 should be closed as well.

Comment by David Storch [ 01/Nov/13 ]

This has been fixed in 2.5 with the changes for update() refactor, SERVER-6399. I will add a js test before resolving as fixed.

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