[SERVER-10273] Fix $bit with and+or Created: 20/Jul/13  Updated: 02/Aug/18  Resolved: 22/Jul/13

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

Type: Task Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

Currently these are failing:

ReplTests::Idempotence::BitOp – seems to be the same issue as below
UpdateTests –

test( BSON( "_id" << 1 << "x" << 3 ) , BSON( "$bit" << BSON( "x" << BSON( "and" << 2 << "or" << 8 ) ) ) , BSON( "_id" << 1 << "x" << ( ( 3 & 2 ) | 8 ) ) );
test( BSON( "_id" << 1 << "x" << 3 ) , BSON( "$bit" << BSON( "x" << BSON( "or" << 2 << "and" << 8 ) ) ) , BSON( "_id" << 1 << "x" << ( ( 3 | 2 ) & 8 ) ) );

For now, to run the tests you can enable the new update framework as the default mode in code (I am working on making this an option for smoke.py to run with for our automated test) and run this:

 scons test && ./test update repl 



 Comments   
Comment by auto [ 22/Jul/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-10273 Support variadic arguments to $bit in new update framework
Branch: master
https://github.com/mongodb/mongo/commit/f33b633a7110d60a54626f17421c283e90a47c2f

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